[Bf-blender-cvs] [aeba4958e51] soc-2019-outliner: Outliner: Fix scene elements closed by default

Nathan Craddock noreply at git.blender.org
Sat Jun 1 06:39:31 CEST 2019


Commit: aeba4958e51929a3e8b1d4bd1f9d0a1262fe1c01
Author: Nathan Craddock
Date:   Fri May 31 21:54:01 2019 -0600
Branches: soc-2019-outliner
https://developer.blender.org/rBaeba4958e51929a3e8b1d4bd1f9d0a1262fe1c01

Outliner: Fix scene elements closed by default

I committed this earlier but accidentally committed the submodules alongside it.

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

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 4e4f25206a5..58ad4e84b0a 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -2306,7 +2306,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 (!tselem->used) {
         tselem->flag &= ~TSE_CLOSED;
       }



More information about the Bf-blender-cvs mailing list