[Bf-blender-cvs] [c7ee2d0e7c] workspaces: Fix crash creating new window with existing layout

Julian Eisel noreply at git.blender.org
Thu Mar 16 22:59:19 CET 2017


Commit: c7ee2d0e7c5ce8d65fbc0a00ff813266aa00c93c
Author: Julian Eisel
Date:   Thu Mar 16 22:58:52 2017 +0100
Branches: workspaces
https://developer.blender.org/rBc7ee2d0e7c5ce8d65fbc0a00ff813266aa00c93c

Fix crash creating new window with existing layout

===================================================================

M	source/blender/windowmanager/intern/wm_window.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 55096bb1f3..ff4e22ac05 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -806,6 +806,7 @@ int wm_window_new_exec(bContext *C, wmOperator *op)
 		/* New window with a different screen but same workspace */
 		WM_window_set_active_workspace(win_dst, workspace);
 		WM_window_set_active_screen(win_dst, workspace, screen);
+		win_dst->scene = win_src->scene;
 		screen->winid = win_dst->winid;
 		CTX_wm_window_set(C, win_dst);
 		ED_screen_refresh(CTX_wm_manager(C), win_dst);




More information about the Bf-blender-cvs mailing list