please dont mix tabs and spaces, failed with python 3.1
This commit is contained in:
		@@ -1,27 +1,26 @@
 | 
			
		||||
 | 
			
		||||
import bpy
 | 
			
		||||
 
 | 
			
		||||
class DataButtonsPanel(bpy.types.Panel):
 | 
			
		||||
        __space_type__ = "BUTTONS_WINDOW"
 | 
			
		||||
        __region_type__ = "WINDOW"
 | 
			
		||||
        __context__ = "data"
 | 
			
		||||
	__space_type__ = "BUTTONS_WINDOW"
 | 
			
		||||
	__region_type__ = "WINDOW"
 | 
			
		||||
	__context__ = "data"
 | 
			
		||||
	
 | 
			
		||||
        def poll(self, context):
 | 
			
		||||
                ob = context.active_object
 | 
			
		||||
                return (ob and ob.type == 'ARMATURE')
 | 
			
		||||
	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"
 | 
			
		||||
	__idname__ = "DATA_PT_skeleton"
 | 
			
		||||
	__label__ = "Skeleton"
 | 
			
		||||
 | 
			
		||||
        def draw(self, context):
 | 
			
		||||
                arm = context.main.armatures[0]
 | 
			
		||||
                layout = self.layout
 | 
			
		||||
	def draw(self, context):
 | 
			
		||||
		arm = context.main.armatures[0]
 | 
			
		||||
		layout = self.layout
 | 
			
		||||
		
 | 
			
		||||
 		row = layout.row()
 | 
			
		||||
 		row.itemR(arm, "rest_position")
 | 
			
		||||
		row = layout.row()
 | 
			
		||||
		row.itemR(arm, "rest_position")
 | 
			
		||||
 | 
			
		||||
 		split = layout.split()
 | 
			
		||||
		split = layout.split()
 | 
			
		||||
 | 
			
		||||
		sub = split.column()
 | 
			
		||||
 | 
			
		||||
@@ -41,14 +40,14 @@ class DATA_PT_skeleton(DataButtonsPanel):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class DATA_PT_display(DataButtonsPanel):
 | 
			
		||||
        __idname__ = "DATA_PT_display"
 | 
			
		||||
        __label__ = "Display"
 | 
			
		||||
	__idname__ = "DATA_PT_display"
 | 
			
		||||
	__label__ = "Display"
 | 
			
		||||
	
 | 
			
		||||
        def draw(self, context):
 | 
			
		||||
                arm = context.main.armatures[0]
 | 
			
		||||
                layout = self.layout
 | 
			
		||||
	def draw(self, context):
 | 
			
		||||
		arm = context.main.armatures[0]
 | 
			
		||||
		layout = self.layout
 | 
			
		||||
 | 
			
		||||
 		split = layout.split()
 | 
			
		||||
		split = layout.split()
 | 
			
		||||
 | 
			
		||||
		sub = split.column()
 | 
			
		||||
		sub.itemR(arm, "drawtype", text="Style")
 | 
			
		||||
@@ -62,14 +61,14 @@ class DATA_PT_display(DataButtonsPanel):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class DATA_PT_paths(DataButtonsPanel):
 | 
			
		||||
        __idname__ = "DATA_PT_paths"
 | 
			
		||||
        __label__ = "Paths"
 | 
			
		||||
	__idname__ = "DATA_PT_paths"
 | 
			
		||||
	__label__ = "Paths"
 | 
			
		||||
 | 
			
		||||
        def draw(self, context):
 | 
			
		||||
                arm = context.main.armatures[0]
 | 
			
		||||
                layout = self.layout
 | 
			
		||||
	def draw(self, context):
 | 
			
		||||
		arm = context.main.armatures[0]
 | 
			
		||||
		layout = self.layout
 | 
			
		||||
 | 
			
		||||
 		split = layout.split()
 | 
			
		||||
		split = layout.split()
 | 
			
		||||
		
 | 
			
		||||
		sub = split.column()
 | 
			
		||||
 | 
			
		||||
@@ -92,14 +91,14 @@ class DATA_PT_paths(DataButtonsPanel):
 | 
			
		||||
 | 
			
		||||
		
 | 
			
		||||
class DATA_PT_ghost(DataButtonsPanel):
 | 
			
		||||
        __idname__ = "DATA_PT_ghost"
 | 
			
		||||
        __label__ = "Ghost"
 | 
			
		||||
	__idname__ = "DATA_PT_ghost"
 | 
			
		||||
	__label__ = "Ghost"
 | 
			
		||||
 | 
			
		||||
        def draw(self, context):
 | 
			
		||||
                arm = context.main.armatures[0]
 | 
			
		||||
                layout = self.layout
 | 
			
		||||
	def draw(self, context):
 | 
			
		||||
		arm = context.main.armatures[0]
 | 
			
		||||
		layout = self.layout
 | 
			
		||||
 | 
			
		||||
 		split = layout.split()
 | 
			
		||||
		split = layout.split()
 | 
			
		||||
 | 
			
		||||
		sub = split.column()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -2,23 +2,23 @@
 | 
			
		||||
import bpy
 | 
			
		||||
 
 | 
			
		||||
class DataButtonsPanel(bpy.types.Panel):
 | 
			
		||||
        __space_type__ = "BUTTONS_WINDOW"
 | 
			
		||||
        __region_type__ = "WINDOW"
 | 
			
		||||
        __context__ = "bone"
 | 
			
		||||
	__space_type__ = "BUTTONS_WINDOW"
 | 
			
		||||
	__region_type__ = "WINDOW"
 | 
			
		||||
	__context__ = "bone"
 | 
			
		||||
	
 | 
			
		||||
        def poll(self, context):
 | 
			
		||||
                ob = context.active_object
 | 
			
		||||
                return (ob and ob.type == 'ARMATURE')
 | 
			
		||||
	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"
 | 
			
		||||
	__idname__ = "DATA_PT_bone"
 | 
			
		||||
	__label__ = "Bone"
 | 
			
		||||
 | 
			
		||||
        def draw(self, context):
 | 
			
		||||
                bone = context.main.armatures[0].bones[0]
 | 
			
		||||
                layout = self.layout
 | 
			
		||||
	def draw(self, context):
 | 
			
		||||
		bone = context.main.armatures[0].bones[0]
 | 
			
		||||
		layout = self.layout
 | 
			
		||||
 | 
			
		||||
 		split = layout.split()
 | 
			
		||||
		split = layout.split()
 | 
			
		||||
 | 
			
		||||
		sub = split.column()
 | 
			
		||||
		sub.itemR(bone, "name")
 | 
			
		||||
@@ -53,23 +53,15 @@ class DATA_PT_bone(DataButtonsPanel):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class DATA_PT_constraints(DataButtonsPanel):
 | 
			
		||||
        __idname__ = "DATA_PT_constraints"
 | 
			
		||||
        __label__ = "Constraints"
 | 
			
		||||
	__idname__ = "DATA_PT_constraints"
 | 
			
		||||
	__label__ = "Constraints"
 | 
			
		||||
	
 | 
			
		||||
        def draw(self, context):
 | 
			
		||||
                bone = context.main.armatures[0].bones[0]
 | 
			
		||||
                layout = self.layout
 | 
			
		||||
 
 | 
			
		||||
 		split = layout.split()
 | 
			
		||||
	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)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user