From c43443d530bff67693dc2db4efdca6307703ce61 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 4 Jul 2018 13:00:46 +0200 Subject: Workspaces: store view layer per main window, instead of per workspace. It was a bit odd that the scene was stored per window but not the view layer. The reasoning was that you would use different view layers for different tasks. This is still possible, but it's more predictable to switch them both explicitly, and with child window support manually syncing the view layers between multiple windows is no longer needed as often. --- source/blender/windowmanager/intern/wm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/windowmanager/intern/wm.c') diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index 9ef0883cbbf..9e7136dc81d 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -463,6 +463,7 @@ void wm_add_default(Main *bmain, bContext *C) CTX_wm_manager_set(C, wm); win = wm_window_new(C, NULL); win->scene = CTX_data_scene(C); + STRNCPY(win->view_layer_name, CTX_data_view_layer(C)->name); BKE_workspace_active_set(win->workspace_hook, workspace); BKE_workspace_hook_layout_for_workspace_set(win->workspace_hook, workspace, layout); screen->winid = win->winid; -- cgit v1.2.3