Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-01 02:35:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-01 02:35:56 +0300
commitd96480884666247beba7085cf709c615a80ddc67 (patch)
tree13984eea7d8325a7dadd2b27606adc8b10cf938b /release/scripts/ui/properties_data_lamp.py
parent41c0236aaa1f4b07650f55905ad1cfa886336268 (diff)
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.
Diffstat (limited to 'release/scripts/ui/properties_data_lamp.py')
-rw-r--r--release/scripts/ui/properties_data_lamp.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/release/scripts/ui/properties_data_lamp.py b/release/scripts/ui/properties_data_lamp.py
index 391ffa758ba..50299ae2c4e 100644
--- a/release/scripts/ui/properties_data_lamp.py
+++ b/release/scripts/ui/properties_data_lamp.py
@@ -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,12 +15,14 @@ class DataButtonsPanel(bpy.types.Panel):
def poll(self, context):
return context.lamp
+
class DATA_PT_preview(DataButtonsPanel):
bl_label = "Preview"
def draw(self, context):
self.layout.template_preview(context.lamp)
+
class DATA_PT_context_lamp(DataButtonsPanel):
bl_label = ""
bl_show_header = False
@@ -40,6 +43,7 @@ class DATA_PT_context_lamp(DataButtonsPanel):
split.template_ID(space, "pin_id")
split.itemS()
+
class DATA_PT_lamp(DataButtonsPanel):
bl_label = "Lamp"
@@ -80,6 +84,7 @@ class DATA_PT_lamp(DataButtonsPanel):
col.itemR(lamp, "specular")
col.itemR(lamp, "diffuse")
+
class DATA_PT_sunsky(DataButtonsPanel):
bl_label = "Sky & Atmosphere"
@@ -123,7 +128,7 @@ class DATA_PT_sunsky(DataButtonsPanel):
sub = col.column()
sub.itemR(lamp, "sun_brightness", text="Brightness")
sub.itemR(lamp, "sun_size", text="Size")
- sub.itemR(lamp, "backscattered_light", slider=True,text="Back Light")
+ sub.itemR(lamp, "backscattered_light", slider=True, text="Back Light")
layout.itemS()
@@ -142,14 +147,15 @@ class DATA_PT_sunsky(DataButtonsPanel):
col.itemL(text="Scattering:")
sub = col.column(align=True)
sub.itemR(lamp, "atmosphere_inscattering", slider=True, text="Inscattering")
- sub.itemR(lamp, "atmosphere_extinction", slider=True ,text="Extinction")
+ sub.itemR(lamp, "atmosphere_extinction", slider=True, text="Extinction")
+
class DATA_PT_shadow(DataButtonsPanel):
bl_label = "Shadow"
def poll(self, context):
lamp = context.lamp
- return (lamp and lamp.type in ('POINT','SUN', 'SPOT', 'AREA'))
+ return (lamp and lamp.type in ('POINT', 'SUN', 'SPOT', 'AREA'))
def draw(self, context):
layout = self.layout
@@ -242,6 +248,7 @@ class DATA_PT_shadow(DataButtonsPanel):
sub.active = not lamp.auto_clip_end
sub.itemR(lamp, "shadow_buffer_clip_end", text=" Clip End")
+
class DATA_PT_area(DataButtonsPanel):
bl_label = "Area Shape"
@@ -266,6 +273,7 @@ class DATA_PT_area(DataButtonsPanel):
sub.itemR(lamp, "size", text="Size X")
sub.itemR(lamp, "size_y", text="Size Y")
+
class DATA_PT_spot(DataButtonsPanel):
bl_label = "Spot Shape"
@@ -294,6 +302,7 @@ class DATA_PT_spot(DataButtonsPanel):
if lamp.shadow_method == 'BUFFER_SHADOW':
sub.itemR(lamp, "halo_step", text="Step")
+
class DATA_PT_falloff_curve(DataButtonsPanel):
bl_label = "Falloff Curve"
bl_default_closed = True