diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-01 13:30:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-01 13:30:18 +0300 |
commit | c9b9803a772ccb7539a71785e121b049620d00d7 (patch) | |
tree | 2305d88fc64a84fbc3275cb25cd77ef05175e781 /source/blender/makesrna/intern/rna_scene.c | |
parent | ba798e0412cdcb5e6a10464ced105c8d6708c4b7 (diff) |
RNA: add check for zero step arguments
Avoids errors like T70281 slipping through.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 4960dc82b28..1f967df7232 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -3363,7 +3363,7 @@ static void rna_def_unified_paint_settings(BlenderRNA *brna) prop, NULL, "rna_UnifiedPaintSettings_unprojected_radius_set", NULL); RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE); RNA_def_property_range(prop, 0.001, FLT_MAX); - RNA_def_property_ui_range(prop, 0.001, 1, 0, -1); + RNA_def_property_ui_range(prop, 0.001, 1, 1, -1); RNA_def_property_ui_text(prop, "Unprojected Radius", "Radius of brush in Blender units"); RNA_def_property_update(prop, 0, "rna_UnifiedPaintSettings_radius_update"); |