diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-11-06 17:11:32 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-11-07 19:03:03 +0300 |
commit | aadc90d0fc6734ac335f5ae488767ddb4dac307c (patch) | |
tree | 29e990b2b9f9e92170c3a21a7b6f23db16181656 /release/scripts/startup/bl_ui/properties_constraint.py | |
parent | 4e5768b2a7863fb2fc85eb774c281ec535e515b8 (diff) |
Stretch To: implement a mode similar to Damped Track for rotation.
Most of the time Stretch To is used in actual rigs, like BlenRig
or Rigify, in combination with Damped Track to handle rotation
before the stretch, because it produces rotations more appropriate
for organic deformation, and doesn't flip because of internal
gimbal lock.
The prevalence of this pattern suggests that Stretch To should
support that kind of rotation directly as an option.
Differential Revision: https://developer.blender.org/D6134
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_constraint.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_constraint.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py index dce2d2f2758..b75d67b5350 100644 --- a/release/scripts/startup/bl_ui/properties_constraint.py +++ b/release/scripts/startup/bl_ui/properties_constraint.py @@ -543,11 +543,14 @@ class ConstraintButtonsPanel: col.active = con.use_bulge_min or con.use_bulge_max col.prop(con, "bulge_smooth", text="Smooth") - row = layout.row() - row.label(text="Volume:") + split = layout.split(factor=0.3) + split.label(text="Volume:") + row = split.row() row.prop(con, "volume", expand=True) - row.label(text="Plane:") + split = layout.split(factor=0.3) + split.label(text="Rotation:") + row = split.row() row.prop(con, "keep_axis", expand=True) def FLOOR(self, _context, layout, con): |