svn merge ^/trunk/blender -r50091:50107
[blender.git] / source / blender / editors / screen / screen_ops.c
index 6b42b2f9de81e618de957e76e9c3904943df956e..f2f37583ce940f7ee4fa730d92057c85d7b48010 100644 (file)
@@ -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"
@@ -851,7 +852,11 @@ static int area_dupli_invoke(bContext *C, wmOperator *op, wmEvent *event)
        rect = sa->totrct;
        BLI_rcti_translate(&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;