Tool System: don't unlink tools when changing workspaces

Caused gizmos to be lost with multiple main windows whenever one of them
switched workspaces.

Rely on tool gizmos poll function to unlink to gizmo.
This commit is contained in:
2019-06-27 11:03:20 +10:00
parent 155c62b070
commit 3128fe4591

View File

@@ -183,9 +183,6 @@ bool ED_workspace_change(WorkSpace *workspace_new, bContext *C, wmWindowManager
BLI_assert(CTX_wm_workspace(C) == workspace_new);
WM_toolsystem_unlink_all(C, workspace_old);
/* Area initialization will initialize based on the new workspace. */
/* Automatic mode switching. */
if (workspace_new->object_mode != workspace_old->object_mode) {
ED_object_mode_generic_enter(C, workspace_new->object_mode);