[Bf-blender-cvs] [52f326ed484] master: Cleanup: add clarifying comment to ViewLayer->layer_collections
Jacques Lucke
noreply at git.blender.org
Thu Feb 13 16:39:06 CET 2020
Commit: 52f326ed4848e5ee48876ba81e210685dc7a1970
Author: Jacques Lucke
Date: Thu Feb 13 16:33:39 2020 +0100
Branches: master
https://developer.blender.org/rB52f326ed4848e5ee48876ba81e210685dc7a1970
Cleanup: add clarifying comment to ViewLayer->layer_collections
===================================================================
M source/blender/makesdna/DNA_layer_types.h
===================================================================
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;
More information about the Bf-blender-cvs
mailing list