Commit: 9bb71e2fbec9ef7a138d4b44b99e54e136765af4
Author: Julian Eisel
Date:   Fri Mar 25 18:48:28 2022 +0100
Branches: temp-outliner-library-override-hierarchy
https://developer.blender.org/rB9bb71e2fbec9ef7a138d4b44b99e54e136765af4

Fix "Current File" being highlighted together with first ID base element

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

M       
source/blender/editors/space_outliner/tree/tree_display_override_library_hierarchy.cc

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

diff --git 
a/source/blender/editors/space_outliner/tree/tree_display_override_library_hierarchy.cc
 
b/source/blender/editors/space_outliner/tree/tree_display_override_library_hierarchy.cc
index b7b8206b214..d666b3acc5c 100644
--- 
a/source/blender/editors/space_outliner/tree/tree_display_override_library_hierarchy.cc
+++ 
b/source/blender/editors/space_outliner/tree/tree_display_override_library_hierarchy.cc
@@ -46,7 +46,7 @@ ListBase TreeDisplayOverrideLibraryHierarchy::buildTree(const 
TreeSourceData &so
 
   /* First step: Build "Current File" hierarchy. */
   TreeElement *current_file_te = outliner_add_element(
-      &space_outliner_, &tree, source_data.bmain, nullptr, TSE_ID_BASE, 0);
+      &space_outliner_, &tree, source_data.bmain, nullptr, TSE_ID_BASE, -1);
   current_file_te->name = IFACE_("Current File");
   {
     AbstractTreeElement::uncollapse_by_default(current_file_te);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to