Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_bone.py
| Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if ob and bone: | if ob and bone: | ||||
| pchan = ob.pose.bones[bone.name] | pchan = ob.pose.bones[bone.name] | ||||
| elif bone is None: | elif bone is None: | ||||
| bone = context.edit_bone | bone = context.edit_bone | ||||
| if bone: | if bone: | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(bone, "hide", text="Hide") | col.prop(bone, "hide", text="Hide", toggle=0) | ||||
| class BONE_PT_display_custom_shape(BoneButtonsPanel, Panel): | class BONE_PT_display_custom_shape(BoneButtonsPanel, Panel): | ||||
| bl_label = "Custom Shape" | bl_label = "Custom Shape" | ||||
| bl_parent_id = "BONE_PT_display" | bl_parent_id = "BONE_PT_display" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| ▲ Show 20 Lines • Show All 188 Lines • Show Last 20 Lines | |||||