diff options
Diffstat (limited to 'source/blender/draw/modes/edit_mesh_mode_text.c')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode_text.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode_text.c b/source/blender/draw/modes/edit_mesh_mode_text.c index bd2f65a40cd..629cb042562 100644 --- a/source/blender/draw/modes/edit_mesh_mode_text.c +++ b/source/blender/draw/modes/edit_mesh_mode_text.c @@ -71,11 +71,11 @@ void DRW_edit_mesh_mode_text_measure_stats( /* make the precision of the display value proportionate to the gridsize */ - if (grid <= 0.01f) conv_float = "%.6g"; - else if (grid <= 0.1f) conv_float = "%.5g"; - else if (grid <= 1.0f) conv_float = "%.4g"; - else if (grid <= 10.0f) conv_float = "%.3g"; - else conv_float = "%.2g"; + if (grid <= 0.01f) { conv_float = "%.6g"; } + else if (grid <= 0.1f) { conv_float = "%.5g"; } + else if (grid <= 1.0f) { conv_float = "%.4g"; } + else if (grid <= 10.0f) { conv_float = "%.3g"; } + else { conv_float = "%.2g"; } if (v3d->overlay.edit_flag & (V3D_OVERLAY_EDIT_EDGE_LEN | V3D_OVERLAY_EDIT_EDGE_ANG | V3D_OVERLAY_EDIT_INDICES)) { BoundBox bb; |