[Bf-blender-cvs] [bdb85bdd981] blender-v3.3-release: Fix T100308: Removing scene time node does not update relations

Hans Goudey noreply at git.blender.org
Wed Aug 10 02:09:51 CEST 2022


Commit: bdb85bdd9813d0162de775b9f265795da0a3fc67
Author: Hans Goudey
Date:   Tue Aug 9 19:09:43 2022 -0500
Branches: blender-v3.3-release
https://developer.blender.org/rBbdb85bdd9813d0162de775b9f265795da0a3fc67

Fix T100308: Removing scene time node does not update relations

Similar to the fix in 734c6a4405f21078270e71.

===================================================================

M	source/blender/blenkernel/intern/node.cc

===================================================================

diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc
index ba473b29474..86c05d6d085 100644
--- a/source/blender/blenkernel/intern/node.cc
+++ b/source/blender/blenkernel/intern/node.cc
@@ -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);
     }



More information about the Bf-blender-cvs mailing list