diff options
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_nodes.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc index 04f3898b0f7..29a31ef4f98 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc @@ -1442,6 +1442,11 @@ void DepsgraphNodeBuilder::build_lamp(Lamp *lamp) DEG_NODE_TYPE_PARAMETERS, NULL, DEG_OPCODE_PARAMETERS_EVAL); + /* NOTE: We mark this node as both entry and exit. This way we have a + * node to link all dependencies for shading (which includes relation to the + * lamp object, and incldues relation from node tree) without adding a + * dedicated component type. */ + op_node->set_as_entry(); op_node->set_as_exit(); /* lamp's nodetree */ build_nodetree(lamp->nodetree); |