diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-30 14:24:57 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-30 14:36:37 +0300 |
commit | 60d6cc8fae6a1a356acf78cc6f3379d2f55f8e91 (patch) | |
tree | 58d8a889ed5e9875644382db3f7a657232f2be18 /source/blender/depsgraph/intern/builder | |
parent | 83cc73083fa4e6fba486d422aa86d62fa665a2a1 (diff) |
Depsgraph: Make a note about why is it OK to pass original base in relations builder
Diffstat (limited to 'source/blender/depsgraph/intern/builder')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc index 2058fd37716..fe7ccf6a24c 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc @@ -73,6 +73,10 @@ void DepsgraphRelationBuilder::build_view_layer(Scene *scene, ViewLayer *view_la /* Setup currently building context. */ scene_ = scene; /* Scene objects. */ + /* NOTE: Nodes builder requires us to pass CoW base because it's being + * passed to the evaluation functions. During relations builder we only + * do NULL-pointer check of the base, so it's fine to pass original one. + */ LINKLIST_FOREACH(Base *, base, &view_layer->object_bases) { build_object(base, base->object); } |