Fix part of T95848: missing updates editing light object nodes

Make relation match material and world nodes. Does not address the reported
issue regarding muted nodes, but another missing update found investigating.
This commit is contained in:
2022-02-17 20:43:04 +01:00
parent b04d42022f
commit eaa4aa8644

View File

@@ -2420,8 +2420,9 @@ void DepsgraphRelationBuilder::build_light(Light *lamp)
/* light's nodetree */
if (lamp->nodetree != nullptr) {
build_nodetree(lamp->nodetree);
ComponentKey nodetree_key(&lamp->nodetree->id, NodeType::NTREE_OUTPUT);
add_relation(nodetree_key, shading_key, "NTree->Light Parameters");
OperationKey ntree_key(
&lamp->nodetree->id, NodeType::NTREE_OUTPUT, OperationCode::NTREE_OUTPUT);
add_relation(ntree_key, shading_key, "NTree->Light Parameters");
build_nested_nodetree(&lamp->id, lamp->nodetree);
}
}