diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-07 19:52:10 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-07 19:54:36 +0300 |
commit | 37eb1090148057e9c1ecaae6a94bf97c8e51dd61 (patch) | |
tree | cd03c47901faebd17035eccecf33e53eee4bd990 /release | |
parent | b1a77117189259cd75f99b91f88a64b810c9973a (diff) |
Spline IK: support using both original scaling and volume preservation.
Add a new option that makes the Spline IK solver apply volume
preservation on top of the original scaling, considering the
pre-IK scale of the bone as the goal volume to be preserved.
This basically works similar to the Stretch To constraint, and
allows easily rigging a stretchy chain that uniformly follows
its parent's scaling.
Since the Stretch To behavior is more familiar, the new option
is on by default for newly created Spline IK constraints.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_constraint.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py index fec90fef590..f5b36d6cfd0 100644 --- a/release/scripts/startup/bl_ui/properties_constraint.py +++ b/release/scripts/startup/bl_ui/properties_constraint.py @@ -801,6 +801,9 @@ class ConstraintButtonsPanel: layout.prop(con, "y_scale_mode") layout.prop(con, "xz_scale_mode") + if con.xz_scale_mode in {'INVERSE_PRESERVE', 'VOLUME_PRESERVE'}: + layout.prop(con, "use_original_scale") + if con.xz_scale_mode == 'VOLUME_PRESERVE': layout.prop(con, "bulge", text="Volume Variation") split = layout.split() |