diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-04 18:17:53 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-04 18:17:53 +0300 |
commit | dfc0d3755b9bd4ce34a8384349ab28fe1c95b8c6 (patch) | |
tree | 9a18fa3073f5031ad6b1a6a173880005a55265ed /source/blender | |
parent | b69cbe7d8759e604e34d81a9ddc90d8167751f33 (diff) |
Depsgraph: Fix missing relation from node tree to light
Was only happening when lamp had driver on the Light datablock.
Reported by Dalai Felinto in T60137.
Diffstat (limited to 'source/blender')
-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); |