diff options
author | Jacques Lucke <jacques@blender.org> | 2020-02-13 18:33:39 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-02-13 18:33:50 +0300 |
commit | 52f326ed4848e5ee48876ba81e210685dc7a1970 (patch) | |
tree | 0cd3ef025e598550092cbea0001b4877da286af1 /source/blender/makesdna | |
parent | be40d86e35b1a6387a60843aabe9b08cf7011806 (diff) |
Cleanup: add clarifying comment to ViewLayer->layer_collections
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_layer_types.h | 5 |
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; |