diff options
author | William Reynish <william@reynish.com> | 2009-08-10 16:17:12 +0400 |
---|---|---|
committer | William Reynish <william@reynish.com> | 2009-08-10 16:17:12 +0400 |
commit | 90e2ffd538f7ff4ffba2814814a0f486da67d71f (patch) | |
tree | 4d38c68d8d45c7abd3341cf64360965a3d72dacd /release/ui/buttons_object_constraint.py | |
parent | 6c951fbb98a5ddb29240c3efc9af4304ab942396 (diff) |
IK constraint and armature modifier layout tweaks
Diffstat (limited to 'release/ui/buttons_object_constraint.py')
-rw-r--r-- | release/ui/buttons_object_constraint.py | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/release/ui/buttons_object_constraint.py b/release/ui/buttons_object_constraint.py index 5606c6c258a..5ee6aba1f05 100644 --- a/release/ui/buttons_object_constraint.py +++ b/release/ui/buttons_object_constraint.py @@ -94,21 +94,29 @@ class ConstraintButtonsPanel(bpy.types.Panel): self.target_template(layout, con) layout.itemR(con, "pole_target") + if con.pole_target and con.pole_target.type == 'ARMATURE': layout.item_pointerR(con, "pole_subtarget", con.pole_target.data, "bones", text="Bone") - flow = layout.column_flow() - flow.itemR(con, "iterations") - flow.itemR(con, "pole_angle") - flow.itemR(con, "weight") - flow.itemR(con, "orient_weight") - flow.itemR(con, "chain_length") - - flow = layout.column_flow() - flow.itemR(con, "tail") - flow.itemR(con, "rotation") - flow.itemR(con, "targetless") - flow.itemR(con, "stretch") + split = layout.split() + + col = split.column() + col.itemR(con, "iterations") + col.itemR(con, "chain_length") + sub = col.column() + sub.active = con.pole_target + sub.itemR(con, "pole_angle") + col.itemL(text="Weight:") + col.itemR(con, "weight", text="Position", slider=True) + sub = col.column() + sub.active = con.rotation + sub.itemR(con, "orient_weight", text="Rotation", slider=True) + + col = split.column() + col.itemR(con, "tail") + col.itemR(con, "rotation") + col.itemR(con, "targetless") + col.itemR(con, "stretch") def FOLLOW_PATH(self, layout, con): self.target_template(layout, con) |