diff options
Diffstat (limited to 'source/blender/editors/screen/workspace_edit.c')
-rw-r--r-- | source/blender/editors/screen/workspace_edit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/screen/workspace_edit.c b/source/blender/editors/screen/workspace_edit.c index 677f78c6d86..534e6c1bff4 100644 --- a/source/blender/editors/screen/workspace_edit.c +++ b/source/blender/editors/screen/workspace_edit.c @@ -202,6 +202,9 @@ bool ED_workspace_change( BLI_assert(BKE_workspace_view_layer_get(workspace_new) != NULL); BLI_assert(CTX_wm_workspace(C) == workspace_new); + WM_toolsystem_unlink(C, workspace_old); + WM_toolsystem_link(C, workspace_new); + return true; } @@ -229,6 +232,8 @@ WorkSpace *ED_workspace_duplicate( #endif BLI_duplicatelist(transform_orientations_new, transform_orientations_old); + workspace_new->tool = workspace_old->tool; + for (WorkSpaceLayout *layout_old = layouts_old->first; layout_old; layout_old = layout_old->next) { WorkSpaceLayout *layout_new = ED_workspace_layout_duplicate(workspace_new, layout_old, win); |