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:
authorJacques Lucke <jacques@blender.org>2020-02-13 18:33:39 +0300
committerJacques Lucke <jacques@blender.org>2020-02-13 18:33:50 +0300
commit52f326ed4848e5ee48876ba81e210685dc7a1970 (patch)
tree0cd3ef025e598550092cbea0001b4877da286af1 /source/blender/makesdna/DNA_layer_types.h
parentbe40d86e35b1a6387a60843aabe9b08cf7011806 (diff)
Cleanup: add clarifying comment to ViewLayer->layer_collections
Diffstat (limited to 'source/blender/makesdna/DNA_layer_types.h')
-rw-r--r--source/blender/makesdna/DNA_layer_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_layer_types.h b/source/blender/makesdna/DNA_layer_types.h
index 4de98e0b684..7fc319b849a 100644
--- a/source/blender/makesdna/DNA_layer_types.h
+++ b/source/blender/makesdna/DNA_layer_types.h
@@ -87,7 +87,10 @@ typedef struct ViewLayer {
/** Default allocated now. */
struct SceneStats *stats;
struct Base *basact;
- /** LayerCollection. */
+
+ /** A view layer has one top level layer collection, because a scene has only one top level
+ * collection. The layer_collections list always contains a single element. ListBase is
+ * convenient when applying functions to all layer collections recursively. */
ListBase layer_collections;
LayerCollection *active_collection;