Blender Git Commit Log

Git Commits -> Revision 1c58604

Revision 1c58604 by Alexander Gavrilov (master)
May 5, 2019, 07:44 (GMT)
Depsgraph: fix Bone property drivers stored in Object animdata.

This can easily happen if adding drivers through Python via
pose.bones[...].bone.driver_add(), e.g. in Rigify code: the
bone field doesn't change id_data, so the driver is associated
with the object ID.

To handle this it's necessary to skip from Object to data in
RNA_Bone-specific code both for generic RNA and in the custom
code for drivers. The latter also had to be changed to use the
proper parsed RNA pointer instead of string matching on paths.

Commit Details:

Full Hash: 1c58604070682a1fe01d6fd49820c1578f18580a
Parent Commit: 47df163
Lines Changed: +46, -23

2 Modified Paths:

/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+40, -23) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_rna.cc (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021