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 DataButtonsPanel(bpy.types.Panel):
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
@@ -229,7 +230,7 @@ class DATA_PT_shadow(DataButtonsPanel):
split = layout.split()
col = split.column()
if lamp.shape == 'SQUARE':
col.itemR(lamp, "shadow_ray_samples_x", text="Samples")
elif lamp.shape == 'RECTANGLE':
@@ -250,7 +251,7 @@ class DATA_PT_shadow(DataButtonsPanel):
else:
if col2:
col = split.column()
elif lamp.shadow_method == 'BUFFER_SHADOW':
col = layout.column()