Blender Git Commit Log

Git Commits -> Revision 1c106e1

Revision 1c106e1 by Alexander Gavrilov (master)
May 14, 2019, 09:39 (GMT)
RNA: fix the id_data pointer of PoseBone.bone to point at the Armature.

The owning ID reference of RNA pointers is supposed to point at the
ID container that owns the object, but for PoseBone.bone it wasn't
updated to point at the Armature data ID instead of Armature Object.

This caused issues, like pose_bone.bone.driver_add() adding the
driver to the Armature Object animation data, which violates the
intended design of the animation data structures.

Since RNA code generally assumes that all pointers that don't
refer directly to an ID remain within the current ID, a custom
getter is required to fix this.

Commit Details:

Full Hash: 1c106e189aafe235ca5e83c97ce477c80ccc437a
Parent Commit: 02e3bf2
Lines Changed: +13, -0

1 Modified Path:

/source/blender/makesrna/intern/rna_pose.c (+13, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021