Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-11-07 13:00:56 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-11-08 16:23:45 +0300
commit6900187092e9b51fcc33b21aaf411695263a4578 (patch)
treeb487c65f6495fe25109ebd7d5ace87a6e02681c1 /source
parentfe2b92d7893ea9d4bb4fabd68a30385a5260d80e (diff)
Fix T71372: view layer is not maintained when area is duplicated into new window
Maniphest Tasks: T71372 Differential Revision: https://developer.blender.org/D6205
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/screen/screen_ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index cc1f53eabde..3c37b49002c 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -1353,6 +1353,8 @@ static int area_dupli_invoke(bContext *C, wmOperator *op, const wmEvent *event)
newwin->scene = scene;
+ STRNCPY(newwin->view_layer_name, win->view_layer_name);
+
BKE_workspace_active_set(newwin->workspace_hook, workspace);
/* allocs new screen and adds to newly created window, using window size */
layout_new = ED_workspace_layout_add(