Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-08-25 19:00:00 +0300
committerJacques Lucke <jacques@blender.org>2021-08-25 19:00:29 +0300
commit8fb91555988d48b6b9d546b0654d5c6274fa1134 (patch)
tree00b247ecf478e91538cfb909b2a11465a7b52792 /source/blender/editors/space_node
parent0d36439f95c0f3c320ebfd429ee8085dd8a6ebc0 (diff)
Fix T90248: missing depsgraph update tag for node group
The code assumed that when a node group is is at the highest level in the node editor, then it is embedded into another data block and can't be referenced by other node groups. This is true for shader and compositor nodes, but not for geometry nodes.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r--source/blender/editors/space_node/node_edit.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_edit.cc b/source/blender/editors/space_node/node_edit.cc
index cbf03f553f6..5b1b737751c 100644
--- a/source/blender/editors/space_node/node_edit.cc
+++ b/source/blender/editors/space_node/node_edit.cc
@@ -398,7 +398,7 @@ void snode_dag_update(bContext *C, SpaceNode *snode)
Main *bmain = CTX_data_main(C);
/* for groups, update all ID's using this */
- if (snode->edittree != snode->nodetree) {
+ if ((snode->edittree->id.flag & LIB_EMBEDDED_DATA) == 0) {
FOREACH_NODETREE_BEGIN (bmain, tntree, id) {
if (ntreeHasTree(tntree, snode->edittree)) {
DEG_id_tag_update(id, 0);