From d83f5f0f01de3233395524575dedc857ef03add4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 29 Apr 2021 17:14:44 +1000 Subject: UI: increase precision of bisect threshold The default value of `0.0001` was displaying as `0.000`, increase the display precision to 5 since this value often needs to be small. --- source/blender/editors/mesh/editmesh_bisect.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'source/blender/editors/mesh') diff --git a/source/blender/editors/mesh/editmesh_bisect.c b/source/blender/editors/mesh/editmesh_bisect.c index bc8c456889d..ea35d5a9e26 100644 --- a/source/blender/editors/mesh/editmesh_bisect.c +++ b/source/blender/editors/mesh/editmesh_bisect.c @@ -444,15 +444,17 @@ void MESH_OT_bisect(struct wmOperatorType *ot) RNA_def_boolean( ot->srna, "clear_outer", false, "Clear Outer", "Remove geometry in front of the plane"); - RNA_def_float(ot->srna, - "threshold", - 0.0001, - 0.0, - 10.0, - "Axis Threshold", - "Preserves the existing geometry along the cut plane", - 0.00001, - 0.1); + prop = RNA_def_float(ot->srna, + "threshold", + 0.0001, + 0.0, + 10.0, + "Axis Threshold", + "Preserves the existing geometry along the cut plane", + 0.00001, + 0.1); + /* Without higher precision, the default value displays as zero. */ + RNA_def_property_ui_range(prop, 0.0, 10.0, 0.01, 5); WM_operator_properties_gesture_straightline(ot, WM_CURSOR_EDIT); -- cgit v1.2.3