made scripts pass the pep8 test (though not fully pep8 yet)
[blender.git] / release / scripts / ui / properties_data_armature.py
index 45ad29c0a6ba43025f5d2ad1e467ec48bedfd44f..f35da79cd1e17797fdccfdba2f47d89cb054a097 100644 (file)
@@ -3,9 +3,10 @@
 # http://www.gnu.org/copyleft/gpl.html. Installing, importing or otherwise
 # using this module constitutes acceptance of the terms of this License.
 
-
+# <pep8 compliant>
 import bpy
 
+
 class DataButtonsPanel(bpy.types.Panel):
     bl_space_type = 'PROPERTIES'
     bl_region_type = 'WINDOW'
@@ -14,6 +15,7 @@ class DataButtonsPanel(bpy.types.Panel):
     def poll(self, context):
         return context.armature
 
+
 class DATA_PT_context_arm(DataButtonsPanel):
     bl_label = ""
     bl_show_header = False
@@ -34,6 +36,7 @@ class DATA_PT_context_arm(DataButtonsPanel):
             split.template_ID(space, "pin_id")
             split.itemS()
 
+
 class DATA_PT_skeleton(DataButtonsPanel):
     bl_label = "Skeleton"
 
@@ -61,6 +64,7 @@ class DATA_PT_skeleton(DataButtonsPanel):
         col.itemR(arm, "deform_quaternion", text="Quaternion")
         col.itemR(arm, "deform_bbone_rest", text="B-Bones Rest")
 
+
 class DATA_PT_display(DataButtonsPanel):
     bl_label = "Display"
 
@@ -78,11 +82,12 @@ class DATA_PT_display(DataButtonsPanel):
         flow.itemR(arm, "draw_group_colors", text="Colors")
         flow.itemR(arm, "delay_deform", text="Delay Refresh")
 
+
 class DATA_PT_bone_groups(DataButtonsPanel):
     bl_label = "Bone Groups"
 
     def poll(self, context):
-        return (context.object and context.object.type=='ARMATURE' and context.object.pose)
+        return (context.object and context.object.type == 'ARMATURE' and context.object.pose)
 
     def draw(self, context):
         layout = self.layout
@@ -101,11 +106,11 @@ class DATA_PT_bone_groups(DataButtonsPanel):
         group = pose.active_bone_group
         if group:
             col = layout.column()
-            col.active= (ob.proxy == None)
+            col.active = (ob.proxy == None)
             col.itemR(group, "name")
 
             split = layout.split(0.5)
-            split.active= (ob.proxy == None)
+            split.active = (ob.proxy == None)
             split.itemR(group, "color_set")
             if group.color_set:
                 split.template_triColorSet(group, "colors")
@@ -118,6 +123,7 @@ class DATA_PT_bone_groups(DataButtonsPanel):
         #row.itemO("object.bone_group_select", text="Select")
         #row.itemO("object.bone_group_deselect", text="Deselect")
 
+
 class DATA_PT_paths(DataButtonsPanel):
     bl_label = "Paths"
 
@@ -154,6 +160,7 @@ class DATA_PT_paths(DataButtonsPanel):
         row.itemO("pose.paths_calculate", text="Calculate Paths")
         row.itemO("pose.paths_clear", text="Clear Paths")
 
+
 class DATA_PT_ghost(DataButtonsPanel):
     bl_label = "Ghost"