Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-09-01 18:57:42 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-09-01 18:57:42 +0300
commita92ab93c7dc3f54ffd8290dd8055998a2c932998 (patch)
treed10f7711c90c0114849008ba9e5818a6a638bce3 /extern
parent23767937ef6bd61736dae09da0fff0a69b37aa5b (diff)
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.
Diffstat (limited to 'extern')
0 files changed, 0 insertions, 0 deletions