diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-03 02:28:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-03 02:28:18 +0400 |
commit | 29d348f8de4e81b3956934c5fad48e94c685a415 (patch) | |
tree | 09d32950c64600875f6ff43dd33d2e65e3c6cf2d /source/blender/makesrna/intern/rna_modifier.c | |
parent | 42a619c781ec7f464783ebb004595d3c9c478a6f (diff) |
add checks for bad args to RNA_def_property_ui_range & RNA_def_property_range and fix one instance where (min > max).
also remove redundant float/double conversion in ui_get_but_step_unit()
Diffstat (limited to 'source/blender/makesrna/intern/rna_modifier.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 019573d87dc..7fc61c0acfd 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -2781,7 +2781,7 @@ static void rna_def_modifier_screw(BlenderRNA *brna) RNA_def_property_update(prop, 0, "rna_Modifier_update"); prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_ui_range(prop, 0, -M_PI * 2, M_PI * 2, 2); + RNA_def_property_ui_range(prop, -M_PI * 2, M_PI * 2, 2, -1); RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); RNA_def_property_ui_text(prop, "Angle", "Angle of revolution"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); |