diff options
author | Thomas Dinges <blender@dingto.org> | 2009-07-30 14:11:19 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-07-30 14:11:19 +0400 |
commit | d56466747d5ee1df8492981e4e80448c3a7bf00f (patch) | |
tree | 0abe6d18591f29072400304af3a010499bf966af /release/ui/buttons_data_lamp.py | |
parent | 249c5fcddc5546a7fa86c48d6752812e44e98c64 (diff) |
2.5 Part 3 of Layout Code Cleanup:
* More cleanup to match new coding guidelines.
http://wiki.blender.org/index.php/Dev:Py/Blender2.5/Layouts/Guidelines
* Replaced some if's with proper elif's.
* Removed some unnecessary code.
Note: Please don't use inconsistent assign names like colsub, subcol1 etc. anymore!
Diffstat (limited to 'release/ui/buttons_data_lamp.py')
-rw-r--r-- | release/ui/buttons_data_lamp.py | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/release/ui/buttons_data_lamp.py b/release/ui/buttons_data_lamp.py index 5be25278e93..a522a66c871 100644 --- a/release/ui/buttons_data_lamp.py +++ b/release/ui/buttons_data_lamp.py @@ -52,41 +52,24 @@ class DATA_PT_lamp(DataButtonsPanel): sub = col.column() sub.itemR(lamp, "color", text="") sub.itemR(lamp, "energy") - - - - - #split = layout.split() - + if lamp.type in ('POINT', 'SPOT'): - #col = split.column() - #col.itemL(text="Falloff:") - sub = col.column() sub.itemR(lamp, "falloff_type", text="Falloff") sub.itemR(lamp, "distance") - - + if lamp.falloff_type == 'LINEAR_QUADRATIC_WEIGHTED': - #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() col.itemR(lamp, "sphere") if lamp.type == 'AREA': - #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") @@ -99,7 +82,6 @@ class DATA_PT_lamp(DataButtonsPanel): col.itemR(lamp, "layer", text="This Layer Only") col.itemR(lamp, "specular") col.itemR(lamp, "diffuse") - class DATA_PT_sunsky(DataButtonsPanel): __label__ = "Sun/Sky" |