[Bf-blender-cvs] [f49747dade0] temp-soc-2019-outliner-sync: Outliner: Fix scenes in scene display not starting open

Nathan Craddock noreply at git.blender.org
Sat Aug 10 05:04:13 CEST 2019


Commit: f49747dade0798e07e576c1ea1761d264e766637
Author: Nathan Craddock
Date:   Fri Aug 9 13:51:58 2019 -0600
Branches: temp-soc-2019-outliner-sync
https://developer.blender.org/rBf49747dade0798e07e576c1ea1761d264e766637

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