diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-01-13 17:17:32 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-01-13 17:17:32 +0300 |
commit | f173973ae461bc1be0f2b12b366ca82b9f3c2077 (patch) | |
tree | e266297ca5ffde821a07508ef6813ac9fde969db /source/blender/depsgraph/intern/builder | |
parent | 79e985ea5491800ea9738bfebf44e29dbadb9c61 (diff) |
Fix T94874: Drivers using bone custom properties don't work on modifiers
Diffstat (limited to 'source/blender/depsgraph/intern/builder')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 5 |
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( |