diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-02-15 21:08:23 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-02-15 21:29:09 +0300 |
commit | 5a10c64e8cc6525f24ce6ac05a2c7d50aa16fb8f (patch) | |
tree | 49000b2cb5aa43407596e123eef9aa2cfbbd6ea5 /source/blender/editors/space_outliner/outliner_tree.c | |
parent | a428daada080771c75bb2003f60792dfea5f2121 (diff) |
Layers: Show collection objects in Outliner
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tree.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index bbabb9e2d7a..62ab69ebda2 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -84,6 +84,9 @@ # include "BLI_math_base.h" /* M_PI */ #endif +/* prototypes */ +static void outliner_make_hierarchy(ListBase *lb); + /* ********************************************************* */ /* Persistent Data */ @@ -1383,6 +1386,11 @@ static void outliner_add_collections_recursive(SpaceOops *soops, ListBase *tree, ten->name = collection->scene_collection->name; ten->directdata = collection; + for (LinkData *link = collection->object_bases.first; link; link = link->next) { + outliner_add_element(soops, &ten->subtree, ((Base *)link->data)->object, NULL, 0, 0); + } + outliner_make_hierarchy(&ten->subtree); + outliner_add_collections_recursive(soops, &ten->subtree, scene, &collection->layer_collections, ten); } } |