used py error checking tools to fix some bugs & make pep8 corrections

This commit is contained in:
2009-11-14 13:35:44 +00:00
parent aac16ce4ec
commit d33291fcc4
28 changed files with 228 additions and 249 deletions

View File

@@ -21,6 +21,7 @@ import bpy
narrowui = 180
class WorldButtonsPanel(bpy.types.Panel):
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
@@ -57,7 +58,7 @@ class WORLD_PT_context_world(WorldButtonsPanel):
space = context.space_data
col2 = context.region.width > narrowui
if col2:
split = layout.split(percentage=0.65)
if scene:
@@ -67,6 +68,7 @@ class WORLD_PT_context_world(WorldButtonsPanel):
else:
layout.template_ID(scene, "world", new="world.new")
class WORLD_PT_world(WorldButtonsPanel):
bl_label = "World"
COMPAT_ENGINES = set(['BLENDER_RENDER'])
@@ -75,7 +77,7 @@ class WORLD_PT_world(WorldButtonsPanel):
layout = self.layout
col2 = context.region.width > narrowui
world = context.world
if col2:
row = layout.row()
row.itemR(world, "paper_sky")
@@ -110,9 +112,9 @@ class WORLD_PT_mist(WorldButtonsPanel):
world = context.world
layout.active = world.mist.enabled
split = layout.split()
col = split.column()
col.itemR(world.mist, "intensity", slider=True)
col.itemR(world.mist, "start")
@@ -142,7 +144,7 @@ class WORLD_PT_stars(WorldButtonsPanel):
layout.active = world.stars.enabled
split = layout.split()
col = split.column()
col.itemR(world.stars, "size")
col.itemR(world.stars, "color_randomization", text="Colors")