diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-05 16:09:21 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-05 17:01:45 +0300 |
commit | 1ddedfb2afd43dd2c2a460a5c13e02f238da3fc0 (patch) | |
tree | ae1fc01a26e479a1b3fdaa710caf9c7f41ff3c52 /source/blender/makesrna | |
parent | 6d980020ba60859947a912e6870c3050a32ab0fd (diff) |
3D viewport: rename ambient to shadow intensity, default single color to 0.8.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 101ef0a2e9a..7c5e798651b 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -2233,10 +2233,10 @@ static void rna_def_space_view3d_shading(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Shadow", "Show Shadow"); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); - prop = RNA_def_property(srna, "ambient_light_intensity", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "shading.ambient_intensity"); + prop = RNA_def_property(srna, "shadow_intensity", PROP_FLOAT, PROP_FACTOR); + RNA_def_property_float_sdna(prop, NULL, "shading.shadow_intensity"); RNA_def_property_float_default(prop, 0.5); - RNA_def_property_ui_text(prop, "Ambient Light", "Intensity of ambient light for shadows"); + RNA_def_property_ui_text(prop, "Shadow Intensity", "Darkness of shadows"); RNA_def_property_range(prop, 0.0f, 1.0f); RNA_def_property_ui_range(prop, 0.00f, 1.0f, 1, 3); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); |