Commit: b8f7538348e6ff37d960cd933562d1f5ff15241c
Author: Campbell Barton
Date:   Sat Mar 3 16:24:35 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBb8f7538348e6ff37d960cd933562d1f5ff15241c

WorkSpace: avoid redundant notifiers w/ mode sync

===================================================================

M       source/blender/editors/screen/workspace_edit.c

===================================================================

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)) {

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to