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/makesdna/DNA_windowmanager_types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_windowmanager_types.h') diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h index 0ef9e9b134a..bd2811d3306 100644 --- a/source/blender/makesdna/DNA_windowmanager_types.h +++ b/source/blender/makesdna/DNA_windowmanager_types.h @@ -188,8 +188,9 @@ typedef struct wmWindow { struct wmWindow *parent; /* Parent window */ - struct Scene *scene; /* The scene displayed in this window. */ + struct Scene *scene; /* Active scene displayed in this window. */ struct Scene *new_scene; /* temporary when switching */ + char view_layer_name[64]; /* Active view layer displayed in this window. */ struct WorkSpaceInstanceHook *workspace_hook; -- cgit v1.2.3