Fix T71372: view layer is not maintained when area is duplicated into new window

Maniphest Tasks: T71372

Differential Revision: https://developer.blender.org/D6205
This commit is contained in:
Philipp Oeser 2019-11-07 11:00:56 +01:00
parent fe2b92d789
commit 6900187092
Notes: blender-bot 2023-02-14 05:53:42 +01:00
Referenced by issue #71372, Active view layer changes when window is torn off
1 changed files with 2 additions and 0 deletions

View File

@ -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(