[Bf-blender-cvs] [1e51411db4e] master: Outliner: Fix scenes in scene display not starting open
Nathan Craddock
noreply at git.blender.org
Fri Aug 16 20:31:58 CEST 2019
Commit: 1e51411db4e5bc0f57a531207f13ee64977cc0e6
Author: Nathan Craddock
Date: Fri Aug 9 13:51:58 2019 -0600
Branches: master
https://developer.blender.org/rB1e51411db4e5bc0f57a531207f13ee64977cc0e6
Outliner: Fix scenes in scene display not starting open
===================================================================
M source/blender/editors/space_outliner/outliner_tree.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index 605b5383aec..ec5510cdf84 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -2347,7 +2347,8 @@ void outliner_build_tree(
te = outliner_add_element(soops, &soops->tree, sce, NULL, 0, 0);
tselem = TREESTORE(te);
- if (sce == scene && show_opened) {
+ /* New scene elements open by default */
+ if ((sce == scene && show_opened) || !tselem->used) {
tselem->flag &= ~TSE_CLOSED;
}
More information about the Bf-blender-cvs
mailing list