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:
authorMatt Ebb <matt@mke3.net>2009-07-29 18:17:15 +0400
committerMatt Ebb <matt@mke3.net>2009-07-29 18:17:15 +0400
commit198d996934af5e7c6a8bf8a6bcfec8c664536f9b (patch)
tree301c56a50fd33d94e85497357524193b5e4a94c9 /release/ui/buttons_data_lamp.py
parent9547fc48ac653c039dc857d08ece8b1072d717c4 (diff)
* a few more small lamp panels tweaks
Diffstat (limited to 'release/ui/buttons_data_lamp.py')
-rw-r--r--release/ui/buttons_data_lamp.py49
1 files changed, 27 insertions, 22 deletions
diff --git a/release/ui/buttons_data_lamp.py b/release/ui/buttons_data_lamp.py
index dbc00ec0c39..5be25278e93 100644
--- a/release/ui/buttons_data_lamp.py
+++ b/release/ui/buttons_data_lamp.py
@@ -52,39 +52,41 @@ class DATA_PT_lamp(DataButtonsPanel):
sub = col.column()
sub.itemR(lamp, "color", text="")
sub.itemR(lamp, "energy")
- col.itemR(lamp, "negative")
- if lamp.type == "AREA":
- col.itemR(lamp, "distance")
- col = split.column()
- col.itemR(lamp, "layer", text="This Layer Only")
- col.itemR(lamp, "specular")
- col.itemR(lamp, "diffuse")
- split = layout.split()
+
+ #split = layout.split()
if lamp.type in ('POINT', 'SPOT'):
- col = split.column()
- col.itemL(text="Falloff:")
+ #col = split.column()
+ #col.itemL(text="Falloff:")
sub = col.column()
- sub.itemR(lamp, "falloff_type", text="")
+ sub.itemR(lamp, "falloff_type", text="Falloff")
sub.itemR(lamp, "distance")
- col.itemR(lamp, "sphere")
+
if lamp.falloff_type == 'LINEAR_QUADRATIC_WEIGHTED':
- col = split.column()
- col.itemL(text="Attenuation Distance:")
+ #col = split.column()
+ col.itemL(text="Attenuation Factors:")
sub = col.column(align=True)
sub.itemR(lamp, "linear_attenuation", slider=True, text="Linear")
sub.itemR(lamp, "quadratic_attenuation", slider=True, text="Quadratic")
- else:
- split.column()
+ #else:
+ #
+ # split.column()
+
+ col.itemR(lamp, "sphere")
if lamp.type == 'AREA':
- col = split.column()
- col.itemL(text="Shape:")
- col.itemR(lamp, "shape", text="")
+ #col = split.column()
+ col.itemR(lamp, "distance")
+ col.itemR(lamp, "gamma")
+
+ #col = split.column()
+
+
+ col.itemR(lamp, "shape")
sub = col.column(align=True)
if (lamp.shape == 'SQUARE'):
sub.itemR(lamp, "size")
@@ -92,9 +94,12 @@ class DATA_PT_lamp(DataButtonsPanel):
sub.itemR(lamp, "size", text="Size X")
sub.itemR(lamp, "size_y", text="Size Y")
- col = split.column()
- col.itemL(text="Gamma:")
- col.itemR(lamp, "gamma", text="Value")
+ col = split.column()
+ col.itemR(lamp, "negative")
+ col.itemR(lamp, "layer", text="This Layer Only")
+ col.itemR(lamp, "specular")
+ col.itemR(lamp, "diffuse")
+
class DATA_PT_sunsky(DataButtonsPanel):
__label__ = "Sun/Sky"