diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2019-08-09 22:51:58 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2019-08-16 21:30:54 +0300 |
commit | 1e51411db4e5bc0f57a531207f13ee64977cc0e6 (patch) | |
tree | 41d2a6e58c31ee2bcff49bb58d783b06de021feb /source | |
parent | 6bc6d016c5e735b437caa31d1f56fc38ca165702 (diff) |
Outliner: Fix scenes in scene display not starting open
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |