Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_bone.py
| Show First 20 Lines • Show All 438 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| col.separator() | col.separator() | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.prop(bone, "head_radius", text="Radius Head") | col.prop(bone, "head_radius", text="Radius Head") | ||||
| col.prop(bone, "tail_radius", text="Tail") | col.prop(bone, "tail_radius", text="Tail") | ||||
| class BONE_PT_custom_props(BoneButtonsPanel, PropertyPanel, Panel): | class BONE_PT_custom_props(BoneButtonsPanel, PropertyPanel, Panel): | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| _property_type = bpy.types.Bone, bpy.types.EditBone, bpy.types.PoseBone | _property_type = bpy.types.Bone, bpy.types.EditBone, bpy.types.PoseBone | ||||
| @property | @property | ||||
| def _context_path(self): | def _context_path(self): | ||||
| obj = bpy.context.object | obj = bpy.context.object | ||||
| if obj and obj.mode == 'POSE': | if obj and obj.mode == 'POSE': | ||||
| return "active_pose_bone" | return "active_pose_bone" | ||||
| else: | else: | ||||
| Show All 19 Lines | |||||