[Bf-blender-cvs] [0f998b27fc9] soc-2019-outliner: Outliner: Fix opening scenes by default

Nathan Craddock noreply at git.blender.org
Fri Jun 7 06:56:14 CEST 2019


Commit: 0f998b27fc947a0e139fbc78d5059b3e51a63fc0
Author: Nathan Craddock
Date:   Thu Jun 6 21:44:08 2019 -0600
Branches: soc-2019-outliner
https://developer.blender.org/rB0f998b27fc947a0e139fbc78d5059b3e51a63fc0

Outliner: Fix opening scenes by default

Keeping `sce == scene` for files with many scenes and having too many
open becomes unmaneageable.

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

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 d7f69e78487..a5dc73263f8 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -2301,7 +2301,7 @@ void outliner_build_tree(
       tselem = TREESTORE(te);
 
       /* New scene elements open by default */
-      if (!tselem->used) {
+      if ((sce == scene && show_opened) || !tselem->used) {
         tselem->flag &= ~TSE_CLOSED;
       }



More information about the Bf-blender-cvs mailing list