diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-04-10 04:20:05 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-04-10 04:20:05 +0400 |
commit | 80670e5e7be6c0836651f60b9a188b3b91c6ef51 (patch) | |
tree | 9bb495c629da8c005de801c1191643cbefe06373 /source/blender/makesrna | |
parent | 0fe1616e13c44027cb3197c59375902c897fa08b (diff) |
Fix for the subtype of range_min/max parameters in RNA Freestyle settings.
These parameters specify a distance in Blender units, so PROP_DISTANCE is more appropriate.
Suggested by Bastien Montagne through personal communications, thanks!
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_linestyle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_linestyle.c b/source/blender/makesrna/intern/rna_linestyle.c index c28229c7bb4..59738fd0fa7 100644 --- a/source/blender/makesrna/intern/rna_linestyle.c +++ b/source/blender/makesrna/intern/rna_linestyle.c @@ -330,12 +330,12 @@ static void rna_def_modifier_color_ramp_common(StructRNA *srna, int range) RNA_def_property_update(prop, NC_LINESTYLE, NULL); if (range) { - prop = RNA_def_property(srna, "range_min", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "range_min", PROP_FLOAT, PROP_DISTANCE); RNA_def_property_float_sdna(prop, NULL, "range_min"); RNA_def_property_ui_text(prop, "Range Min", "Lower bound of the input range the mapping is applied"); RNA_def_property_update(prop, NC_LINESTYLE, NULL); - prop = RNA_def_property(srna, "range_max", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "range_max", PROP_FLOAT, PROP_DISTANCE); RNA_def_property_float_sdna(prop, NULL, "range_max"); RNA_def_property_ui_text(prop, "Range Max", "Upper bound of the input range the mapping is applied"); RNA_def_property_update(prop, NC_LINESTYLE, NULL); @@ -370,12 +370,12 @@ static void rna_def_modifier_curve_common(StructRNA *srna, int range, int value) RNA_def_property_update(prop, NC_LINESTYLE, NULL); if (range) { - prop = RNA_def_property(srna, "range_min", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "range_min", PROP_FLOAT, PROP_DISTANCE); RNA_def_property_float_sdna(prop, NULL, "range_min"); RNA_def_property_ui_text(prop, "Range Min", "Lower bound of the input range the mapping is applied"); RNA_def_property_update(prop, NC_LINESTYLE, NULL); - prop = RNA_def_property(srna, "range_max", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "range_max", PROP_FLOAT, PROP_DISTANCE); RNA_def_property_float_sdna(prop, NULL, "range_max"); RNA_def_property_ui_text(prop, "Range Max", "Upper bound of the input range the mapping is applied"); RNA_def_property_update(prop, NC_LINESTYLE, NULL); |