diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-12-31 18:36:25 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-12-31 18:39:15 +0300 |
commit | 82e0739f648134213161df500634c52d324c12cc (patch) | |
tree | a07924ee1c7f9f1a71171455f0ae09e7ba9b3ffc /source/blender/editors/space_outliner | |
parent | c1d82e584926b7b8a4c70849a7633aa6390ce7fb (diff) |
Outliner: expand view layer collections by default, revealing objects.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index f7f0d441138..9ac96cf4929 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -1313,6 +1313,12 @@ static void outliner_add_layer_collections_recursive( ten->name = id->name + 2; ten->directdata = lc; + /* Open by default. */ + TreeStoreElem *tselem = TREESTORE(ten); + if (!tselem->used) { + tselem->flag &= ~TSE_CLOSED; + } + const bool exclude = (lc->flag & LAYER_COLLECTION_EXCLUDE) != 0; if (exclude || ((layer->runtime_flag & VIEW_LAYER_HAS_HIDE) && |