diff options
author | William Reynish <billrey@me.com> | 2019-02-20 02:15:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-20 02:18:24 +0300 |
commit | 855b3e68ef272f6ddb3b496cf8e6d074733e99d4 (patch) | |
tree | fd1bccfd53ae60f10e776cf6346792255b385911 /source/blender/makesrna/intern/rna_lamp.c | |
parent | 079099e8db65963393b75d2ae1705932819813e9 (diff) |
RNA: use factor when appropriate
- Many factor properties were set to PROP_NONE,
even properties that had 'Factor' in the name!
- Some time properties were not set to PROP_TIME,
especially in Particles.
- Changed motion_blur_shutter to use a soft max value of 1 instead of 2.
Anything > 1 here is not physically correct
and makes no real logical sense.
- Changed display name of Dynamic Paint dissolve_speed to Dissolve Time,
since it's a time property, not speed.
Diffstat (limited to 'source/blender/makesrna/intern/rna_lamp.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_lamp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_lamp.c b/source/blender/makesrna/intern/rna_lamp.c index 2cec4668e87..ccf49ea3329 100644 --- a/source/blender/makesrna/intern/rna_lamp.c +++ b/source/blender/makesrna/intern/rna_lamp.c @@ -230,13 +230,13 @@ static void rna_def_light_falloff(StructRNA *srna) RNA_def_property_ui_text(prop, "Falloff Curve", "Custom light falloff curve"); RNA_def_property_update(prop, 0, "rna_Light_update"); - prop = RNA_def_property(srna, "linear_attenuation", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "linear_attenuation", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "att1"); RNA_def_property_range(prop, 0.0f, 1.0f); RNA_def_property_ui_text(prop, "Linear Attenuation", "Linear distance attenuation"); RNA_def_property_update(prop, 0, "rna_Light_draw_update"); - prop = RNA_def_property(srna, "quadratic_attenuation", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "quadratic_attenuation", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "att2"); RNA_def_property_range(prop, 0.0f, 1.0f); RNA_def_property_ui_text(prop, "Quadratic Attenuation", "Quadratic distance attenuation"); |