[Bf-blender-cvs] [9238b7308a3] blender2.8: Fix view layer set in the outliner of child window not syncing to parent window.

Brecht Van Lommel noreply at git.blender.org
Mon Nov 26 16:59:05 CET 2018


Commit: 9238b7308a3f0b2716237b36dbe9fe16ce4e041c
Author: Brecht Van Lommel
Date:   Mon Nov 26 16:57:59 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB9238b7308a3f0b2716237b36dbe9fe16ce4e041c

Fix view layer set in the outliner of child window not syncing to parent window.

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

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 14b13fce652..53394aa927f 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -2196,7 +2196,7 @@ void WM_window_set_active_view_layer(wmWindow *win, ViewLayer *view_layer)
 	wmWindow *win_parent = (win->parent) ? win->parent : win;
 
 	/* Set  view layer in parent and child windows. */
-	STRNCPY(win->view_layer_name, view_layer->name);
+	STRNCPY(win_parent->view_layer_name, view_layer->name);
 
 	for (wmWindow *win_child = wm->windows.first; win_child; win_child = win_child->next) {
 		if (win_child->parent == win_parent) {



More information about the Bf-blender-cvs mailing list