Fix T100308: Removing scene time node does not update relations

Similar to the fix in 734c6a4405.
This commit is contained in:
Hans Goudey 2022-08-09 19:09:43 -05:00
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
1 changed files with 3 additions and 1 deletions

View File

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