diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2020-07-01 05:10:37 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2020-07-01 05:11:11 +0300 |
commit | 039bfe0e059194a0ef51f2ea8239b998b036be07 (patch) | |
tree | b5d37e828f6a64ca7b9791df7ca36b02c2ed54b6 /release/scripts/startup | |
parent | aeb47920447da116b776f08379d5029c052fbc9c (diff) |
UI: Constraints: Use single column for IK constraint
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_constraint.py | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py index b4fab47fc08..9e68cb2d502 100644 --- a/release/scripts/startup/bl_ui/properties_constraint.py +++ b/release/scripts/startup/bl_ui/properties_constraint.py @@ -865,19 +865,18 @@ class ConstraintButtonsPanel(Panel): self.target_template(layout, con) if context.object.pose.ik_solver == 'ITASC': - layout.prop(con, "ik_type") + col = layout.column() + col.prop(con, "ik_type") - layout.prop(con, "pole_target") + col = layout.column() + col.prop(con, "pole_target") if con.pole_target and con.pole_target.type == 'ARMATURE': - layout.prop_search(con, "pole_subtarget", con.pole_target.data, "bones", text="Bone") - - if con.pole_target: - row = layout.row() - row.label() - row.prop(con, "pole_angle") + col.prop_search(con, "pole_subtarget", con.pole_target.data, "bones", text="Bone") col = layout.column() + if con.pole_target: + col.prop(con, "pole_angle") col.prop(con, "use_tail") col.prop(con, "use_stretch") col.prop(con, "chain_count") @@ -919,17 +918,15 @@ class ConstraintButtonsPanel(Panel): col.prop(con, "distance", text="Distance", slider=True) else: # Standard IK constraint - layout.prop(con, "pole_target") + col = layout.column() + col.prop(con, "pole_target") if con.pole_target and con.pole_target.type == 'ARMATURE': - layout.prop_search(con, "pole_subtarget", con.pole_target.data, "bones", text="Bone") - - if con.pole_target: - row = layout.row() - row.prop(con, "pole_angle") - row.label() + col.prop_search(con, "pole_subtarget", con.pole_target.data, "bones", text="Bone") col = layout.column() + if con.pole_target: + col.prop(con, "pole_angle") col.prop(con, "iterations") col.prop(con, "chain_count") col.prop(con, "use_tail") |