Blender Git Commit Log

Git Commits -> Revision a92ab93

Revision a92ab93 by Sybren A. Stüvel (master)
September 1, 2020, 15:57 (GMT)
Fix T79553: StretchTo constraint: Apply Pose changes bone length

Recompute Rest Length stored in the StretchTo constraint after applying
the current pose as rest pose.

The "Apply Pose as Rest Pose" operator applies the evaluated pose as
rest pose, which means that the change in bone length from the StretchTo
constraint is applied to the rest pose. The bug was caused by the fact
that the StretchTo constraint wasn't updated for the new pose, and thus
still applied the same scale factor to the new pose, effectively
doubling its effect.

The "Apply Pose as Rest Pose" operator now forces a recompute of the
rest length cached in the StretchTo constraint data. As a result, the
length of the bone before and after the pose is applied remains the
same. The X and Z scale (perpendicular to the bone length) are reset to
1.0, as with the applied pose the bone isn't stretched or squashed any
more.

Commit Details:

Full Hash: a92ab93c7dc3f54ffd8290dd8055998a2c932998
Parent Commit: 2376793
Lines Changed: +44, -0

1 Modified Path:

/source/blender/editors/armature/pose_transform.c (+44, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021