made scripts pass the pep8 test (though not fully pep8 yet)

added comment in header to know if a script has been converted or not.
This commit is contained in:
2009-10-31 23:35:56 +00:00
parent 41c0236aaa
commit d964808846
41 changed files with 612 additions and 213 deletions

View 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 WorldButtonsPanel(bpy.types.Panel):
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
@@ -16,6 +17,7 @@ class WorldButtonsPanel(bpy.types.Panel):
rd = context.scene.render_data
return (context.world) and (not rd.use_game_engine) and (rd.engine in self.COMPAT_ENGINES)
class WORLD_PT_preview(WorldButtonsPanel):
bl_label = "Preview"
COMPAT_ENGINES = set(['BLENDER_RENDER'])
@@ -23,6 +25,7 @@ class WORLD_PT_preview(WorldButtonsPanel):
def draw(self, context):
self.layout.template_preview(context.world)
class WORLD_PT_context_world(WorldButtonsPanel):
bl_label = ""
bl_show_header = False
@@ -46,6 +49,7 @@ class WORLD_PT_context_world(WorldButtonsPanel):
elif world:
split.template_ID(space, "pin_id")
class WORLD_PT_world(WorldButtonsPanel):
bl_label = "World"
COMPAT_ENGINES = set(['BLENDER_RENDER'])
@@ -67,6 +71,7 @@ class WORLD_PT_world(WorldButtonsPanel):
col.active = world.blend_sky
row.column().itemR(world, "ambient_color")
class WORLD_PT_mist(WorldButtonsPanel):
bl_label = "Mist"
COMPAT_ENGINES = set(['BLENDER_RENDER'])
@@ -91,6 +96,7 @@ class WORLD_PT_mist(WorldButtonsPanel):
layout.itemR(world.mist, "falloff")
class WORLD_PT_stars(WorldButtonsPanel):
bl_label = "Stars"
COMPAT_ENGINES = set(['BLENDER_RENDER'])
@@ -113,6 +119,7 @@ class WORLD_PT_stars(WorldButtonsPanel):
flow.itemR(world.stars, "min_distance", text="Min. Dist")
flow.itemR(world.stars, "average_separation", text="Separation")
class WORLD_PT_ambient_occlusion(WorldButtonsPanel):
bl_label = "Ambient Occlusion"
COMPAT_ENGINES = set(['BLENDER_RENDER'])