diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-02-17 22:43:04 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-02-18 21:50:53 +0300 |
commit | eaa4aa864427e8aaa0bb1d4f0ce930b562aabc05 (patch) | |
tree | 9f32459a78faf64c1921771d5f1f0d0308949e49 /source/blender/depsgraph/intern | |
parent | b04d42022f7816dc1cfbf8d4e66733bd78eebbc9 (diff) |
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.
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index 462e61c5671..d63d1bafb3e 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -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); } } |