[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20282] branches/blender2.5/blender/ release/ui: please dont mix tabs and spaces, failed with python 3.1

Campbell Barton ideasman42 at gmail.com
Wed May 20 04:17:55 CEST 2009


Revision: 20282
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20282
Author:   campbellbarton
Date:     2009-05-20 04:17:53 +0200 (Wed, 20 May 2009)

Log Message:
-----------
please dont mix tabs and spaces, failed with python 3.1

Modified Paths:
--------------
    branches/blender2.5/blender/release/ui/buttons_data_armature.py
    branches/blender2.5/blender/release/ui/buttons_data_bone.py

Modified: branches/blender2.5/blender/release/ui/buttons_data_armature.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_data_armature.py	2009-05-20 01:11:56 UTC (rev 20281)
+++ branches/blender2.5/blender/release/ui/buttons_data_armature.py	2009-05-20 02:17:53 UTC (rev 20282)
@@ -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_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_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_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 @@
 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)

Modified: branches/blender2.5/blender/release/ui/buttons_data_bone.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_data_bone.py	2009-05-20 01:11:56 UTC (rev 20281)
+++ branches/blender2.5/blender/release/ui/buttons_data_bone.py	2009-05-20 02:17:53 UTC (rev 20282)
@@ -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_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)
-
-
-





More information about the Bf-blender-cvs mailing list