diff options
author | Ton Roosendaal <ton@blender.org> | 2009-04-12 21:28:41 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-04-12 21:28:41 +0400 |
commit | 095fe990e8c818179a1c343892b0e81825ca7f09 (patch) | |
tree | 9981c48bf01168b439f67530222d1c1851d7f28a /source/blender/makesrna/intern/rna_lamp.c | |
parent | 5bdd541f0caf1a6c511a2e513e30be39955daccb (diff) |
2.5
Patch provided by Thomas (DingTo). Fixes min/max limits in rna.
Diffstat (limited to 'source/blender/makesrna/intern/rna_lamp.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_lamp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_lamp.c b/source/blender/makesrna/intern/rna_lamp.c index 202d1af9154..d7d7fc348d9 100644 --- a/source/blender/makesrna/intern/rna_lamp.c +++ b/source/blender/makesrna/intern/rna_lamp.c @@ -189,7 +189,7 @@ static void rna_def_lamp_sky_settings(BlenderRNA *brna) RNA_def_property_update(prop, NC_LAMP|ND_SKY, NULL); prop= RNA_def_property(srna, "backscattered_light", PROP_FLOAT, PROP_NONE); - RNA_def_property_range(prop, 0.0f, 1.0f); + RNA_def_property_range(prop, -1.0f, 1.0f); RNA_def_property_ui_text(prop, "Backscattered Light", "Backscattered light."); RNA_def_property_update(prop, NC_LAMP|ND_SKY, NULL); @@ -200,7 +200,7 @@ static void rna_def_lamp_sky_settings(BlenderRNA *brna) prop= RNA_def_property(srna, "atmosphere_turbidity", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "atm_turbidity"); - RNA_def_property_range(prop, 0.0f, 30.0f); + RNA_def_property_range(prop, 1.0f, 30.0f); RNA_def_property_ui_text(prop, "Atmosphere Turbidity", "Sky turbidity."); RNA_def_property_update(prop, NC_LAMP|ND_SKY, NULL); @@ -270,7 +270,7 @@ static void rna_def_lamp(BlenderRNA *brna) prop= RNA_def_property(srna, "distance", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "dist"); - RNA_def_property_range(prop, 0.0f, 9999.0f); + RNA_def_property_range(prop, 0.01f, 5000.0f); RNA_def_property_ui_text(prop, "Distance", "Falloff distance - the light is at half the original intensity at this point."); RNA_def_property_update(prop, NC_LAMP|ND_LIGHTING_DRAW, NULL); |