2.5 Buttons:

* Some Updates for n-key Areas in View3D and Image Editor and some tweaks in bone panels. Patch by William Reynish. Thanks!
This commit is contained in:
2009-07-14 12:32:19 +00:00
parent 6e1e212162
commit 99e369d38d
4 changed files with 205 additions and 90 deletions

View File

@@ -23,6 +23,23 @@ class BONE_PT_context_bone(BoneButtonsPanel):
split.itemL(text="", icon="ICON_BONE_DATA")
split.itemR(bone, "name", text="")
class BONE_PT_transform_bone(BoneButtonsPanel):
__idname__ = "BONE_PT_transform_bone"
__label__ = "Transform"
def draw(self, context):
layout = self.layout
bone = context.bone
if not bone:
bone = context.edit_bone
#Seems to be missing from RNA?
row = layout.row()
row.column().itemR(bone, "location")
row.column().itemR(bone, "rotation")
row.column().itemR(bone, "scale")
class BONE_PT_bone(BoneButtonsPanel):
__idname__ = "BONE_PT_bone"
__label__ = "Bone"
@@ -93,5 +110,6 @@ class BONE_PT_deform(BoneButtonsPanel):
bpy.types.register(BONE_PT_context_bone)
bpy.types.register(BONE_PT_transform_bone)
bpy.types.register(BONE_PT_bone)
bpy.types.register(BONE_PT_deform)