Fix T100308: Removing scene time node does not update relations
Similar to the fix in 734c6a4405
.
This commit is contained in:
parent
31e06a8c73
commit
bdb85bdd98
Notes:
blender-bot
2023-02-14 03:44:41 +01:00
Referenced by issue #100308, Geometry Node Scene Time Causes Graph Update Even When Deleted
|
@ -3047,7 +3047,9 @@ void nodeRemoveNode(Main *bmain, bNodeTree *ntree, bNode *node, bool do_id_user)
|
|||
}
|
||||
}
|
||||
|
||||
if (node_has_id) {
|
||||
/* Also update relations for the scene time node, which causes a dependency
|
||||
* on time that users expect to be removed when the node is removed. */
|
||||
if (node_has_id || node->type == GEO_NODE_INPUT_SCENE_TIME) {
|
||||
if (bmain != nullptr) {
|
||||
DEG_relations_tag_update(bmain);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue