diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-05-20 06:17:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-05-20 06:17:53 +0400 |
commit | 42b5e495890a380db0bdc49bbefc683e311b9f93 (patch) | |
tree | 864a02ec8d660ecd9ab1f5dda6c9117f41c94582 /release/ui/buttons_data_bone.py | |
parent | 40ae17d2f6e2d5dbbe89321491572035c304872c (diff) |
please dont mix tabs and spaces, failed with python 3.1
Diffstat (limited to 'release/ui/buttons_data_bone.py')
-rw-r--r-- | release/ui/buttons_data_bone.py | 56 |
1 files changed, 24 insertions, 32 deletions
diff --git a/release/ui/buttons_data_bone.py b/release/ui/buttons_data_bone.py index fb3648802ef..6982b9beecb 100644 --- a/release/ui/buttons_data_bone.py +++ b/release/ui/buttons_data_bone.py @@ -2,24 +2,24 @@ import bpy class DataButtonsPanel(bpy.types.Panel): - __space_type__ = "BUTTONS_WINDOW" - __region_type__ = "WINDOW" - __context__ = "bone" - - def poll(self, context): - ob = context.active_object - return (ob and ob.type == 'ARMATURE') - + __space_type__ = "BUTTONS_WINDOW" + __region_type__ = "WINDOW" + __context__ = "bone" + + def poll(self, context): + ob = context.active_object + return (ob and ob.type == 'ARMATURE') + class DATA_PT_bone(DataButtonsPanel): - __idname__ = "DATA_PT_bone" - __label__ = "Bone" - - def draw(self, context): - bone = context.main.armatures[0].bones[0] - layout = self.layout - - split = layout.split() - + __idname__ = "DATA_PT_bone" + __label__ = "Bone" + + def draw(self, context): + bone = context.main.armatures[0].bones[0] + layout = self.layout + + split = layout.split() + sub = split.column() sub.itemR(bone, "name") sub.itemR(bone, "parent") @@ -53,23 +53,15 @@ class DATA_PT_bone(DataButtonsPanel): class DATA_PT_constraints(DataButtonsPanel): - __idname__ = "DATA_PT_constraints" - __label__ = "Constraints" - - def draw(self, context): - bone = context.main.armatures[0].bones[0] - layout = self.layout - - split = layout.split() + __idname__ = "DATA_PT_constraints" + __label__ = "Constraints" + + def draw(self, context): + bone = context.main.armatures[0].bones[0] + layout = self.layout + split = layout.split() sub = split.column() - - - - bpy.types.register(DATA_PT_bone) bpy.types.register(DATA_PT_constraints) - - - |