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.
This commit is contained in:
2021-08-25 18:00:00 +02:00
parent 0d36439f95
commit 8fb9155598

View File

@@ -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);