[Bf-blender-cvs] [10869e24316] master: Fix T65626: Use Nodes checkbox locks after being checked with "insert keyframe"

Sergey Sharybin noreply at git.blender.org
Tue Jun 11 11:57:22 CEST 2019


Commit: 10869e243162fcd06c06e5a7161a685b38eead54
Author: Sergey Sharybin
Date:   Tue Jun 11 11:56:30 2019 +0200
Branches: master
https://developer.blender.org/rB10869e243162fcd06c06e5a7161a685b38eead54

Fix T65626: Use Nodes checkbox locks after being checked with "insert keyframe"

Not sure if this is something what is supported by render pipeline, but this report
discovered some actual error in logic.

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

M	source/blender/depsgraph/intern/node/deg_node_id.cc

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

diff --git a/source/blender/depsgraph/intern/node/deg_node_id.cc b/source/blender/depsgraph/intern/node/deg_node_id.cc
index 8a7ec927f8c..8dd01050753 100644
--- a/source/blender/depsgraph/intern/node/deg_node_id.cc
+++ b/source/blender/depsgraph/intern/node/deg_node_id.cc
@@ -206,6 +206,11 @@ ComponentNode *IDNode::add_component(NodeType type, const char *name)
 void IDNode::tag_update(Depsgraph *graph, eUpdateSource source)
 {
   GHASH_FOREACH_BEGIN (ComponentNode *, comp_node, components) {
+    /* Relations update does explicit animation update when needed. Here we ignore animation
+     * component to avoid loss of possible unkeyed changes. */
+    if (comp_node->type == NodeType::ANIMATION && source == DEG_UPDATE_SOURCE_RELATIONS) {
+      continue;
+    }
     comp_node->tag_update(graph, source);
   }
   GHASH_FOREACH_END();



More information about the Bf-blender-cvs mailing list