diff options
author | Matt Ebb <matt@mke3.net> | 2009-05-20 17:56:22 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-05-20 17:56:22 +0400 |
commit | 2e91f1b1555b54784eda5d133d8a3b594d0b8797 (patch) | |
tree | ab48c8791ff115246d1baf5c06bf30b9c268011d /source/blender/makesrna/intern/rna_world.c | |
parent | a47c673b5525fde6484d4392160fbb5101f2c108 (diff) |
Assorted UI tweaks/cleanups
Diffstat (limited to 'source/blender/makesrna/intern/rna_world.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_world.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_world.c b/source/blender/makesrna/intern/rna_world.c index 7a9638af314..eb764e4bc2d 100644 --- a/source/blender/makesrna/intern/rna_world.c +++ b/source/blender/makesrna/intern/rna_world.c @@ -156,17 +156,15 @@ static void rna_def_ambient_occlusion(BlenderRNA *brna) prop= RNA_def_property(srna, "distance", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "aodist"); - RNA_def_property_range(prop, 0.001, 5000); RNA_def_property_ui_text(prop, "Distance", "Length of rays, defines how far away other faces give occlusion effect."); prop= RNA_def_property(srna, "strength", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "aodistfac"); - RNA_def_property_range(prop, 0.00001, 10); RNA_def_property_ui_text(prop, "Strength", "Distance attenuation factor, the higher, the 'shorter' the shadows."); prop= RNA_def_property(srna, "energy", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "aoenergy"); - RNA_def_property_range(prop, 0.01, 3); + RNA_def_property_ui_range(prop, 0, 10, 0.1, 3); RNA_def_property_ui_text(prop, "Energy", "Global energy scale for ambient occlusion."); prop= RNA_def_property(srna, "bias", PROP_FLOAT, PROP_NONE); @@ -192,6 +190,7 @@ static void rna_def_ambient_occlusion(BlenderRNA *brna) prop= RNA_def_property(srna, "correction", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "ao_approx_correction"); RNA_def_property_range(prop, 0, 1); + RNA_def_property_ui_range(prop, 0, 1, 0.1, 2); RNA_def_property_ui_text(prop, "Correction", "Ad-hoc correction for over-occlusion due to the approximation (for Approximate)."); prop= RNA_def_property(srna, "falloff", PROP_BOOLEAN, PROP_NONE); |