Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_constraint.py
| Show All 38 Lines | def draw_constraint(self, context, con): | ||||
| if con.type in {'IK', 'SPLINE_IK'}: | if con.type in {'IK', 'SPLINE_IK'}: | ||||
| # constraint.disable_keep_transform doesn't work well | # constraint.disable_keep_transform doesn't work well | ||||
| # for these constraints. | # for these constraints. | ||||
| box.prop(con, "influence") | box.prop(con, "influence") | ||||
| else: | else: | ||||
| row = box.row(align=True) | row = box.row(align=True) | ||||
| row.prop(con, "influence") | row.prop(con, "influence") | ||||
| row.prop(con, "use_start_transform", text="") | |||||
| row.operator("constraint.disable_keep_transform", text="", icon='CANCEL') | row.operator("constraint.disable_keep_transform", text="", icon='CANCEL') | ||||
| @staticmethod | @staticmethod | ||||
| def space_template(layout, con, target=True, owner=True): | def space_template(layout, con, target=True, owner=True): | ||||
| if target or owner: | if target or owner: | ||||
| split = layout.split(factor=0.2) | split = layout.split(factor=0.2) | ||||
| ▲ Show 20 Lines • Show All 981 Lines • Show Last 20 Lines | |||||