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
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2019-05-07 19:52:10 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-05-07 19:54:36 +0300
commit37eb1090148057e9c1ecaae6a94bf97c8e51dd61 (patch)
treecd03c47901faebd17035eccecf33e53eee4bd990 /release/scripts/startup/bl_ui/properties_constraint.py
parentb1a77117189259cd75f99b91f88a64b810c9973a (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/scripts/startup/bl_ui/properties_constraint.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_constraint.py3
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()