[Bf-blender-cvs] [d83f5f0f01d] blender-v2.93-release: UI: increase precision of bisect threshold
Campbell Barton
noreply at git.blender.org
Thu Apr 29 09:21:12 CEST 2021
Commit: d83f5f0f01de3233395524575dedc857ef03add4
Author: Campbell Barton
Date: Thu Apr 29 17:14:44 2021 +1000
Branches: blender-v2.93-release
https://developer.blender.org/rBd83f5f0f01de3233395524575dedc857ef03add4
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.
===================================================================
M source/blender/editors/mesh/editmesh_bisect.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list