Commit: f173973ae461bc1be0f2b12b366ca82b9f3c2077
Author: Sergey Sharybin
Date: Thu Jan 13 15:17:32 2022 +0100
Branches: master
https://developer.blender.org/rBf173973ae461bc1be0f2b12b366ca82b9f3c2077
Fix T94874: Drivers using bone custom properties don't work on modifiers
===================================================================
M source/blender/depsgraph/intern/builder/deg_builder_relations.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index fcdc3fe58e8..38e46ca95c6 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1746,6 +1746,11 @@ void
DepsgraphRelationBuilder::build_driver_id_property(ID *id, const char *rna_
const bPoseChannel *pchan = static_cast<const bPoseChannel *>(ptr.data);
id_property_key = OperationKey(
id, NodeType::BONE, pchan->name, OperationCode::ID_PROPERTY,
prop_identifier);
+ /* Create relation from the parameters component so that tagging armature
for parameters update
+ * properly propagates updates to all properties on bones and deeper (if
needed). */
+ OperationKey parameters_init_key(id, NodeType::PARAMETERS,
OperationCode::PARAMETERS_ENTRY);
+ add_relation(
+ parameters_init_key, id_property_key, "Init -> ID Property",
RELATION_CHECK_BEFORE_ADD);
}
else {
id_property_key = OperationKey(
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs