diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-11-27 10:15:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-11-27 10:36:54 +0300 |
commit | d4161845b28b83e2a49bca24b749afb4d0ab8af6 (patch) | |
tree | 200f432f1588ff328996d13e60ae22531c6c0e39 /source/blender/editors/screen/workspace_edit.c | |
parent | ee99d1453a5baed844582e35cf4618952b7023b3 (diff) |
Tool System: show manipulators at startup
Support duplicating, switching workspaces too.
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); |