diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-07-26 15:57:27 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-07-26 15:57:27 +0400 |
commit | 4e024a1e6e41640d2f70624bb15778dc6a6c6695 (patch) | |
tree | 19c0d3a42dd78d9a6c38cb54e4f3ac0adc8be8d2 /release/ui/buttons_object_constraint.py | |
parent | 812530aca81385af5a34fab851b4031521a1abe0 (diff) |
2.5 - 'Reset' buttons for Limit Distance and Stretch To Constraints
Diffstat (limited to 'release/ui/buttons_object_constraint.py')
-rw-r--r-- | release/ui/buttons_object_constraint.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/release/ui/buttons_object_constraint.py b/release/ui/buttons_object_constraint.py index 8d531df9e19..1766513a952 100644 --- a/release/ui/buttons_object_constraint.py +++ b/release/ui/buttons_object_constraint.py @@ -379,26 +379,29 @@ class ConstraintButtonsPanel(bpy.types.Panel): def limit_distance(self, layout, con): self.target_template(layout, con) - layout.itemR(con, "distance") + col = layout.column(align=True); + col.itemR(con, "distance") + col.itemO("constraint.limitdistance_reset") row = layout.row() row.itemL(text="Clamp Region:") row.itemR(con, "limit_mode", text="") - #Missing: Recalculate Button def stretch_to(self, layout, con): self.target_template(layout, con) - row = layout.row() - row.itemR(con, "original_length", text="Rest Length") - row.itemR(con, "bulge", text="Volume Variation") + col = layout.column(align=True) + col.itemR(con, "original_length", text="Rest Length") + col.itemO("constraint.stretchto_reset") + + col = layout.column() + col.itemR(con, "bulge", text="Volume Variation") row = layout.row() row.itemL(text="Volume:") row.itemR(con, "volume", expand=True) row.itemL(text="Plane:") row.itemR(con, "keep_axis", expand=True) - #Missing: Recalculate Button def floor(self, layout, con): self.target_template(layout, con) |