[Bf-blender-cvs] [7e7b073712f] soc-2019-outliner: Outliner: Deselect data elements on selection sync

Nathan Craddock noreply at git.blender.org
Sat Aug 10 06:48:39 CEST 2019


Commit: 7e7b073712f175d375b0ad09fea18838621c5189
Author: Nathan Craddock
Date:   Fri Aug 9 22:45:54 2019 -0600
Branches: soc-2019-outliner
https://developer.blender.org/rB7e7b073712f175d375b0ad09fea18838621c5189

Outliner: Deselect data elements on selection sync

Outliner items like mesh data and collections cannot be synced
to the 3D view, but it is still useful to have them selected in
the outliner. When syncing selection to the outliner, it makes
sense to deselect these data elements.

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

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 42068dfff1e..e4087c9d821 100644
--- a/source/blender/editors/space_outliner/outliner_sync.c
+++ b/source/blender/editors/space_outliner/outliner_sync.c
@@ -410,6 +410,9 @@ static void outliner_sync_selection_to_outliner(ViewLayer *view_layer,
         outliner_select_sync_from_sequence(soops, active_data->sequence, tselem);
       }
     }
+    else {
+      tselem->flag &= ~TSE_SELECTED;
+    }
 
     /* Sync subtree elements */
     outliner_sync_selection_to_outliner(view_layer, soops, &te->subtree, active_data, sync_types);



More information about the Bf-blender-cvs mailing list