diff options
author | Thomas Dinges <blender@dingto.org> | 2009-05-14 23:41:45 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-05-14 23:41:45 +0400 |
commit | 2df94626c483c9b522e347ecc792c634fdec420a (patch) | |
tree | faebef0786a5401fcded1249968fd9223af6714f | |
parent | aee6d32005a13bb19b20dcb03df28c4a50c3e9ea (diff) |
2.5:
* Renamed Local Lamp to Point Lamp, as discussed in IRC.
* Small layout changes to the lamp panel.
-rw-r--r-- | release/ui/buttons_data_lamp.py | 20 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_lamp.c | 2 |
2 files changed, 7 insertions, 15 deletions
diff --git a/release/ui/buttons_data_lamp.py b/release/ui/buttons_data_lamp.py index 6cec1a0d09d..d7ade3ecccf 100644 --- a/release/ui/buttons_data_lamp.py +++ b/release/ui/buttons_data_lamp.py @@ -28,26 +28,18 @@ class DATA_PT_lamp(DataButtonsPanel): sub = layout.sub(0) sub.column() - sub.itemL(text="LAMP DATABLOCKS") sub.itemR(lamp, "energy") sub.itemR(lamp, "distance") + sub.itemR(lamp, "negative") + sub.itemR(lamp, "color") sub = layout.sub(1) sub.column() - sub.itemR(lamp, "color") - - layout.split(number=2) - - sub = layout.sub(0) - sub.column() - sub.itemL(text="Illumination:") - sub.itemR(lamp, "layer") - sub.itemR(lamp, "negative") + sub.itemR(lamp, "layer", text="This Layer Only") sub.itemR(lamp, "specular") sub.itemR(lamp, "diffuse") - sub = layout.sub(1) - if (lamp.type in ('LOCAL', 'SPOT')): + if (lamp.type in ('POINT', 'SPOT')): sub.column() sub.itemR(lamp, "falloff_type") sub.itemR(lamp, "sphere") @@ -121,7 +113,7 @@ class DATA_PT_shadow(DataButtonsPanel): def poll(self, context): ob = context.active_object lamp = context.main.lamps[0] - return (ob.type == 'LAMP' and lamp.type in ('LOCAL','SUN', 'SPOT', 'AREA')) + return (ob.type == 'LAMP' and lamp.type in ('POINT','SUN', 'SPOT', 'AREA')) def draw(self, context): lamp = context.main.lamps[0] @@ -153,7 +145,7 @@ class DATA_PT_shadow(DataButtonsPanel): layout.itemL(text="Sampling:") layout.itemR(lamp, "shadow_ray_sampling_method", expand=True) - if (lamp.type in ('LOCAL', 'SUN', 'SPOT') and lamp.shadow_ray_sampling_method in ('CONSTANT_QMC', 'ADAPTIVE_QMC')): + if (lamp.type in ('POINT', 'SUN', 'SPOT') and lamp.shadow_ray_sampling_method in ('CONSTANT_QMC', 'ADAPTIVE_QMC')): layout.column_flow() layout.itemR(lamp, "shadow_soft_size", text="Soft Size") layout.itemR(lamp, "shadow_ray_samples", text="Samples") diff --git a/source/blender/makesrna/intern/rna_lamp.c b/source/blender/makesrna/intern/rna_lamp.c index d7d7fc348d9..333c356acbc 100644 --- a/source/blender/makesrna/intern/rna_lamp.c +++ b/source/blender/makesrna/intern/rna_lamp.c @@ -252,7 +252,7 @@ static void rna_def_lamp(BlenderRNA *brna) PropertyRNA *prop; static EnumPropertyItem prop_type_items[] = { - {LA_LOCAL, "LOCAL", "Local", "Omnidirectional point light source."}, + {LA_LOCAL, "POINT", "Point", "Omnidirectional point light source."}, {LA_SUN, "SUN", "Sun", "Constant direction parallel ray light source."}, {LA_SPOT, "SPOT", "Spot", "Directional cone light source."}, {LA_HEMI, "HEMI", "Hemi", "180 degree constant light source."}, |