Depsgraph: Make a note about why is it OK to pass original base in relations builder

This commit is contained in:
Sergey Sharybin 2017-11-30 12:24:57 +01:00
parent 83cc73083f
commit 60d6cc8fae
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}