Layers: Show collection objects in Outliner
This commit is contained in:
@@ -84,6 +84,9 @@
|
|||||||
# include "BLI_math_base.h" /* M_PI */
|
# include "BLI_math_base.h" /* M_PI */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* prototypes */
|
||||||
|
static void outliner_make_hierarchy(ListBase *lb);
|
||||||
|
|
||||||
/* ********************************************************* */
|
/* ********************************************************* */
|
||||||
/* Persistent Data */
|
/* Persistent Data */
|
||||||
|
|
||||||
@@ -1383,6 +1386,11 @@ static void outliner_add_collections_recursive(SpaceOops *soops, ListBase *tree,
|
|||||||
ten->name = collection->scene_collection->name;
|
ten->name = collection->scene_collection->name;
|
||||||
ten->directdata = collection;
|
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);
|
outliner_add_collections_recursive(soops, &ten->subtree, scene, &collection->layer_collections, ten);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user