Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-02-15 21:08:23 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-02-15 21:29:09 +0300
commit5a10c64e8cc6525f24ce6ac05a2c7d50aa16fb8f (patch)
tree49000b2cb5aa43407596e123eef9aa2cfbbd6ea5 /source/blender/editors/space_outliner/outliner_tree.c
parenta428daada080771c75bb2003f60792dfea5f2121 (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.c8
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);
}
}