[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48835] branches/soc-2011-tomato/source/ blender/editors/screen/screen_ops.c: Use color management settings form the current window when

Sergey Sharybin sergey.vfx at gmail.com
Wed Jul 11 14:51:07 CEST 2012


Revision: 48835
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48835
Author:   nazgul
Date:     2012-07-11 12:51:06 +0000 (Wed, 11 Jul 2012)
Log Message:
-----------
Use color management settings form the current window when
duplicating area to new window.

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/editors/screen/screen_ops.c

Modified: branches/soc-2011-tomato/source/blender/editors/screen/screen_ops.c
===================================================================
--- branches/soc-2011-tomato/source/blender/editors/screen/screen_ops.c	2012-07-11 12:42:02 UTC (rev 48834)
+++ branches/soc-2011-tomato/source/blender/editors/screen/screen_ops.c	2012-07-11 12:51:06 UTC (rev 48835)
@@ -49,6 +49,7 @@
 #include "DNA_mask_types.h"
 #include "DNA_userdef_types.h"
 
+#include "BKE_colortools.h"
 #include "BKE_context.h"
 #include "BKE_customdata.h"
 #include "BKE_global.h"
@@ -829,7 +830,11 @@
 	rect = sa->totrct;
 	BLI_translate_rcti(&rect, win->posx, win->posy);
 	newwin = WM_window_open(C, &rect);
-	
+
+	/* copy color management settings from the current window */
+	BKE_color_managed_display_settings_copy(&newwin->display_settings, &win->display_settings);
+	BKE_color_managed_view_settings_copy(&newwin->view_settings, &win->view_settings);
+
 	/* allocs new screen and adds to newly created window, using window size */
 	newsc = ED_screen_add(newwin, CTX_data_scene(C), sc->id.name + 2);
 	newwin->screen = newsc;




More information about the Bf-blender-cvs mailing list