Blender Git Loki

Git Commits -> Revision 65f77cc

Revision 65f77cc by Alexander Gavrilov (master)
October 4, 2018, 16:55 (GMT)
Fix T56268: display the correct rest shape for B-Bones in Edit Mode.

The rest shape of B-Bones is actually affected by custom handles or
the default connected parent/child mechanism. Ignoring these effects
thus leads to the edit mode shape being different from the actual
rest pose.

This splits the b_bone_spline_setup function that is used to compute
the correct rest and pose shape from pose channels into two parts,
and applies the data structure independent half to edit mode.

In order to access the custom handle settings in Edit Mode, they are
moved to Bone and EditBone, while the bPoseChannel fields are downgraded
in status to a cache for performance. Also, instead of flags, introduce
an enum to specify the handle operation modes, so that new ones could
be added later.

Reviewers: aligorith, brecht

Differential Revision: https://developer.blender.org/D3588

Commit Details:

Full Hash: 65f77ccea1645f8c66fc171377641b08b62010e0
Parent Commit: 61a24c7
Lines Changed: +297, -167

4 Modified Paths:

/source/blender/blenkernel/BKE_armature.h (+24, -1) (Diff)
/source/blender/blenkernel/intern/armature.c (+180, -109) (Diff)
/source/blender/draw/intern/draw_armature.c (+91, -57) (Diff)
/source/blender/editors/include/ED_armature.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021