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.
This commit is contained in:
parent
d31d5523d5
commit
d83f5f0f01
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue