diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-03 08:24:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-03 08:24:35 +0300 |
commit | b8f7538348e6ff37d960cd933562d1f5ff15241c (patch) | |
tree | 738d293caa71278af7ee8f0d9cba109c0d371b4c /source/blender/editors | |
parent | d111f33008e578b23aa10d6ffe1787e9fcd4c4ee (diff) |
WorkSpace: avoid redundant notifiers w/ mode sync
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/screen/workspace_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/workspace_edit.c b/source/blender/editors/screen/workspace_edit.c index b8ec1c12eb6..8a6c8e8628e 100644 --- a/source/blender/editors/screen/workspace_edit.c +++ b/source/blender/editors/screen/workspace_edit.c @@ -324,7 +324,7 @@ void ED_workspace_object_mode_sync_from_object(wmWindowManager *wm, WorkSpace *w } for (wmWindow *win = wm->windows.first; win; win = win->next) { WorkSpace *workspace_iter = BKE_workspace_active_get(win->workspace_hook); - if (workspace != workspace_iter) { + if ((workspace != workspace_iter) && (workspace->object_mode != workspace_iter->object_mode)) { Scene *scene_iter = WM_window_get_active_scene(win); ViewLayer *view_layer = BKE_view_layer_from_workspace_get(scene_iter, workspace_iter); if (obact == OBACT(view_layer)) { |