Spline IK: support changing individual bone length via Y scaling.
authorAlexander Gavrilov <angavrilov@gmail.com>
Mon, 15 Apr 2019 17:25:41 +0000 (20:25 +0300)
committerAlexander Gavrilov <angavrilov@gmail.com>
Tue, 16 Apr 2019 15:41:57 +0000 (18:41 +0300)
commitad9275ed4e60b7ca4874bbb2c80fef6e2606eb39
tree901785b1d79494754a4d96450ce13a093a74ab95
parent752edc0a155a3cd9ff6b0152cd7c96cecd542c9b
Spline IK: support changing individual bone length via Y scaling.

Previously Spline IK provided only two choices: either scale the
length of the bone chain to fit the length of the curve, or don't
scale the bone in the Y dimension at all (ignoring effects of
actually fitting to the curve due to curvature and curve object
scale).

This patch adds a new option to use the pre-IK Y scale of the
bones to adjust their length when fitted to the curve, allowing
individual posing control over the length of the segments.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D4687
release/scripts/startup/bl_ui/properties_constraint.py
source/blender/blenkernel/intern/armature_update.c
source/blender/blenkernel/intern/constraint.c
source/blender/blenloader/intern/versioning_280.c
source/blender/makesdna/DNA_constraint_types.h
source/blender/makesrna/intern/rna_constraint.c