diff options
author | Matt Ebb <matt@mke3.net> | 2010-06-15 05:28:17 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-06-15 05:28:17 +0400 |
commit | ab41296461353ffe27e01c75e70ee0d7948e75cb (patch) | |
tree | b3cc4b036393daa12605dd4e13835a1f4bae4873 /source/blender/makesrna/intern/rna_lamp.c | |
parent | 148cca898b76e18d1338f6d7efb51a4b08438026 (diff) |
'Fix' [#22591] Sun Lamp Sky / Atmosphere settings not rendering properly
Turbidity values below 2.0 give weird results, made 2.0 the default soft minimum.
Diffstat (limited to 'source/blender/makesrna/intern/rna_lamp.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_lamp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_lamp.c b/source/blender/makesrna/intern/rna_lamp.c index b4b02737af0..769d73d9f79 100644 --- a/source/blender/makesrna/intern/rna_lamp.c +++ b/source/blender/makesrna/intern/rna_lamp.c @@ -275,6 +275,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, 1.0f, 30.0f); + RNA_def_property_ui_range(prop, 2.0f, 10.0f, 1, 2); RNA_def_property_ui_text(prop, "Atmosphere Turbidity", "Sky turbidity"); RNA_def_property_update(prop, 0, "rna_Lamp_sky_update"); |