[Bf-blender-cvs] [9bb71e2fbec] temp-outliner-library-override-hierarchy: Fix "Current File" being highlighted together with first ID base element
Julian Eisel
noreply at git.blender.org
Fri Mar 25 18:49:13 CET 2022
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);
More information about the Bf-blender-cvs
mailing list