Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-05-20 06:17:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-05-20 06:17:53 +0400
commit42b5e495890a380db0bdc49bbefc683e311b9f93 (patch)
tree864a02ec8d660ecd9ab1f5dda6c9117f41c94582 /release/ui/buttons_data_bone.py
parent40ae17d2f6e2d5dbbe89321491572035c304872c (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.py56
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)
-
-
-