[Bf-blender-cvs] [039bfe0e059] master: UI: Constraints: Use single column for IK constraint
Aaron Carlisle
noreply at git.blender.org
Wed Jul 1 04:11:16 CEST 2020
Commit: 039bfe0e059194a0ef51f2ea8239b998b036be07
Author: Aaron Carlisle
Date: Tue Jun 30 22:10:37 2020 -0400
Branches: master
https://developer.blender.org/rB039bfe0e059194a0ef51f2ea8239b998b036be07
UI: Constraints: Use single column for IK constraint
===================================================================
M release/scripts/startup/bl_ui/properties_constraint.py
===================================================================
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")
More information about the Bf-blender-cvs
mailing list