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

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