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>2016-12-05 22:43:02 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-12-05 22:43:02 +0300
commitd0ef44218ea076a4b247d7334fa1b17cf7761fe8 (patch)
tree1877a4d5049ba15c413abfafd5fe0ef00d6c7d39 /source/blender/blenkernel/intern/collection.c
parent4ad8789a38e32f120595d4ef32b5e44b6d9a65d6 (diff)
Rename: collections > scene/layer_collections
Diffstat (limited to 'source/blender/blenkernel/intern/collection.c')
-rw-r--r--source/blender/blenkernel/intern/collection.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c
index 1a78084a8a2..f53d8be0fd5 100644
--- a/source/blender/blenkernel/intern/collection.c
+++ b/source/blender/blenkernel/intern/collection.c
@@ -48,9 +48,9 @@ SceneCollection *BKE_collection_add(Scene *scene, SceneCollection *sc_parent, co
SceneCollection *sc_master = BKE_collection_master(scene);
BLI_strncpy(sc->name, name, sizeof(sc->name));
- BLI_uniquename(&sc_master->collections, sc, DATA_("Collection"), '.', offsetof(SceneCollection, name), sizeof(sc->name));
+ BLI_uniquename(&sc_master->scene_collections, sc, DATA_("Collection"), '.', offsetof(SceneCollection, name), sizeof(sc->name));
- BLI_addtail(&sc_parent->collections, sc);
+ BLI_addtail(&sc_parent->scene_collections, sc);
TODO_LAYER_SYNC;
return sc;
@@ -67,20 +67,20 @@ static void collection_free(SceneCollection *sc)
id_us_min(link->data);
}
- for (SceneCollection *nsc = sc->collections.first; nsc; nsc = nsc->next) {
+ for (SceneCollection *nsc = sc->scene_collections.first; nsc; nsc = nsc->next) {
collection_free(nsc);
}
- BLI_freelistN(&sc->collections);
+ BLI_freelistN(&sc->scene_collections);
}
/* unlink the collection recursively
* return true if unlinked */
static bool collection_remlink(SceneCollection *sc_parent, SceneCollection *sc_gone)
{
- for (SceneCollection *sc = sc_parent->collections.first; sc; sc = sc->next)
+ for (SceneCollection *sc = sc_parent->scene_collections.first; sc; sc = sc->next)
{
if (sc == sc_gone) {
- BLI_remlink(&sc_parent->collections, sc_gone);
+ BLI_remlink(&sc_parent->scene_collections, sc_gone);
return true;
}
@@ -98,7 +98,7 @@ static void layer_collection_remove(SceneLayer *sl, ListBase *lb, const SceneCol
{
LayerCollection *lc = lb->first;
while(lc) {
- if (lc->collection == sc) {
+ if (lc->scene_collection == sc) {
BKE_layer_collection_free(sl, lc);
BLI_remlink(lb, lc);
@@ -109,13 +109,13 @@ static void layer_collection_remove(SceneLayer *sl, ListBase *lb, const SceneCol
/* only the "top-level" layer collections may have the
* same SceneCollection in a sibling tree.
*/
- if (lb != &sl->collections) {
+ if (lb != &sl->layer_collections) {
return;
}
}
else {
- layer_collection_remove(sl, &lc->collections, sc);
+ layer_collection_remove(sl, &lc->layer_collections, sc);
lc = lc->next;
}
}
@@ -143,7 +143,7 @@ bool BKE_collection_remove(Scene *scene, SceneCollection *sc)
/* check all layers that use this collection and clear them */
for (SceneLayer *sl = scene->render_layers.first; sl; sl = sl->next) {
- layer_collection_remove(sl, &sl->collections, sc);
+ layer_collection_remove(sl, &sl->layer_collections, sc);
sl->active_collection = 0;
}