[Bf-blender-cvs] [22fea4852f3] soc-2019-outliner: Only notify on syncing specific types of data

Nathan Craddock noreply at git.blender.org
Wed Aug 7 07:30:08 CEST 2019


Commit: 22fea4852f342da6240c927275a7ff7c4f00a25b
Author: Nathan Craddock
Date:   Tue Aug 6 23:29:34 2019 -0600
Branches: soc-2019-outliner
https://developer.blender.org/rB22fea4852f342da6240c927275a7ff7c4f00a25b

Only notify on syncing specific types of data

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

M	source/blender/editors/space_outliner/outliner_sync.c

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

diff --git a/source/blender/editors/space_outliner/outliner_sync.c b/source/blender/editors/space_outliner/outliner_sync.c
index c98b460c9aa..a8f618db1ac 100644
--- a/source/blender/editors/space_outliner/outliner_sync.c
+++ b/source/blender/editors/space_outliner/outliner_sync.c
@@ -257,6 +257,8 @@ void ED_outliner_select_sync_from_outliner(bContext *C, SpaceOutliner *soops)
 
   /* Set global sync select flag based on outliner selection type */
   if (sync_types.object) {
+    DEG_id_tag_update(&scene->id, ID_RECALC_SELECT);
+    WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene);
     ED_outliner_select_sync_from_object_tag(C);
   }
   if (sync_types.edit_bone) {
@@ -266,17 +268,13 @@ void ED_outliner_select_sync_from_outliner(bContext *C, SpaceOutliner *soops)
     ED_outliner_select_sync_from_pose_bone_tag(C);
   }
   if (sync_types.sequence) {
+    WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER | NA_SELECTED, scene);
     ED_outliner_select_sync_from_sequence_tag(C);
   }
 
   /* Flag all outliners as dirty except for self */
   ED_outliner_select_sync_flag_outliners(C);
   soops->sync_select_dirty &= ~WM_OUTLINER_SYNC_SELECT_FROM_ALL;
-
-  /* Update editors */
-  DEG_id_tag_update(&scene->id, ID_RECALC_SELECT);
-  WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene);
-  WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER | NA_SELECTED, scene);
 }
 
 static void outliner_select_sync_from_object(ViewLayer *view_layer,



More information about the Bf-blender-cvs mailing list