Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2022-01-13 17:17:32 +0300
committerSergey Sharybin <sergey@blender.org>2022-01-13 17:17:32 +0300
commitf173973ae461bc1be0f2b12b366ca82b9f3c2077 (patch)
treee266297ca5ffde821a07508ef6813ac9fde969db
parent79e985ea5491800ea9738bfebf44e29dbadb9c61 (diff)
Fix T94874: Drivers using bone custom properties don't work on modifiers
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_relations.cc5
1 files changed, 5 insertions, 0 deletions
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(