Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_bone.py
| Show First 20 Lines • Show All 286 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if bone and pchan: | if bone and pchan: | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(pchan, "custom_shape") | col.prop(pchan, "custom_shape") | ||||
| sub = col.column() | sub = col.column() | ||||
| sub.active = bool(pchan and pchan.custom_shape) | sub.active = bool(pchan and pchan.custom_shape) | ||||
| sub.separator() | sub.separator() | ||||
| sub.prop(pchan, "custom_shape_scale", text="Scale") | |||||
| sub.prop(pchan, "custom_shape_scale_xyz", text="Scale") | |||||
| sub.prop(pchan, "custom_shape_translation", text="Translation") | |||||
| sub.prop(pchan, "custom_shape_rotation_euler", text="Rotation") | |||||
| sub.prop_search(pchan, "custom_shape_transform", | sub.prop_search(pchan, "custom_shape_transform", | ||||
| ob.pose, "bones", text="Override Transform") | ob.pose, "bones", text="Override Transform") | ||||
| sub.prop(pchan, "use_custom_shape_bone_size") | sub.prop(pchan, "use_custom_shape_bone_size") | ||||
| sub.separator() | sub.separator() | ||||
| sub.prop(bone, "show_wire", text="Wireframe") | sub.prop(bone, "show_wire", text="Wireframe") | ||||
| class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel): | class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel): | ||||
| bl_label = "Inverse Kinematics" | bl_label = "Inverse Kinematics" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| ▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines | |||||