please dont mix tabs and spaces, failed with python 3.1
authorCampbell Barton <ideasman42@gmail.com>
Wed, 20 May 2009 02:17:53 +0000 (02:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 20 May 2009 02:17:53 +0000 (02:17 +0000)
release/ui/buttons_data_armature.py
release/ui/buttons_data_bone.py

index f8cf595ea37864bf421d5f923cddac938ea2dc51..5a54b4dcc8e604d0aabfd1cb042a761aaf4d7c33 100644 (file)
@@ -1,28 +1,27 @@
-
 import bpy
  
 class DataButtonsPanel(bpy.types.Panel):
-        __space_type__ = "BUTTONS_WINDOW"
-        __region_type__ = "WINDOW"
-        __context__ = "data"
-       
-        def poll(self, context):
-                ob = context.active_object
-                return (ob and ob.type == 'ARMATURE')
-       
+       __space_type__ = "BUTTONS_WINDOW"
+       __region_type__ = "WINDOW"
+       __context__ = "data"
+       
+       def poll(self, context):
+               ob = context.active_object
+               return (ob and ob.type == 'ARMATURE')
+
 class DATA_PT_skeleton(DataButtonsPanel):
-        __idname__ = "DATA_PT_skeleton"
-        __label__ = "Skeleton"
-        def draw(self, context):
-                arm = context.main.armatures[0]
-                layout = self.layout
-                
-               row = layout.row()
-               row.itemR(arm, "rest_position")
-               split = layout.split()
+       __idname__ = "DATA_PT_skeleton"
+       __label__ = "Skeleton"
+
+       def draw(self, context):
+               arm = context.main.armatures[0]
+               layout = self.layout
                
+               row = layout.row()
+               row.itemR(arm, "rest_position")
+
+               split = layout.split()
+
                sub = split.column()
 
                sub.itemL(text="Deform:")
@@ -41,15 +40,15 @@ class DATA_PT_skeleton(DataButtonsPanel):
 
 
 class DATA_PT_display(DataButtonsPanel):
-        __idname__ = "DATA_PT_display"
-        __label__ = "Display"
-        def draw(self, context):
-                arm = context.main.armatures[0]
-                layout = self.layout
-               split = layout.split()
-               
+       __idname__ = "DATA_PT_display"
+       __label__ = "Display"
+       
+       def draw(self, context):
+               arm = context.main.armatures[0]
+               layout = self.layout
+
+               split = layout.split()
+
                sub = split.column()
                sub.itemR(arm, "drawtype", text="Style")
                sub.itemR(arm, "delay_deform", text="Delay Refresh")
@@ -62,14 +61,14 @@ class DATA_PT_display(DataButtonsPanel):
 
 
 class DATA_PT_paths(DataButtonsPanel):
-        __idname__ = "DATA_PT_paths"
-        __label__ = "Paths"
-        def draw(self, context):
-                arm = context.main.armatures[0]
-                layout = self.layout
-               split = layout.split()
+       __idname__ = "DATA_PT_paths"
+       __label__ = "Paths"
+
+       def draw(self, context):
+               arm = context.main.armatures[0]
+               layout = self.layout
+
+               split = layout.split()
                
                sub = split.column()
 
@@ -92,15 +91,15 @@ class DATA_PT_paths(DataButtonsPanel):
 
                
 class DATA_PT_ghost(DataButtonsPanel):
-        __idname__ = "DATA_PT_ghost"
-        __label__ = "Ghost"
-        def draw(self, context):
-                arm = context.main.armatures[0]
-                layout = self.layout
-               split = layout.split()
-               
+       __idname__ = "DATA_PT_ghost"
+       __label__ = "Ghost"
+
+       def draw(self, context):
+               arm = context.main.armatures[0]
+               layout = self.layout
+
+               split = layout.split()
+
                sub = split.column()
 
                sub.itemR(arm, "ghost_type", text="Scope")
@@ -119,4 +118,4 @@ class DATA_PT_ghost(DataButtonsPanel):
 bpy.types.register(DATA_PT_skeleton)
 bpy.types.register(DATA_PT_display)
 bpy.types.register(DATA_PT_paths)
-bpy.types.register(DATA_PT_ghost)
\ No newline at end of file
+bpy.types.register(DATA_PT_ghost)
index fb3648802ef4deec9711b398bc4e61187eafb7c2..6982b9beecbb5f02c031068c907b44795a89cc10 100644 (file)
@@ -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)
-
-
-