Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager_text.c
| Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | void DRW_text_edit_mesh_measure_stats(ARegion *region, | ||||
| if (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_EDGE_ANG) { | if (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_EDGE_ANG) { | ||||
| edge_tex_count += 1; | edge_tex_count += 1; | ||||
| } | } | ||||
| if ((v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_INDICES) && (em->selectmode & SCE_SELECT_EDGE)) { | if ((v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_INDICES) && (em->selectmode & SCE_SELECT_EDGE)) { | ||||
| edge_tex_count += 1; | edge_tex_count += 1; | ||||
| } | } | ||||
| const short edge_tex_sep = (short)((edge_tex_count - 1) * 5.0f * U.dpi_fac); | const short edge_tex_sep = (short)((edge_tex_count - 1) * 5.0f * U.dpi_fac); | ||||
| /* make the precision of the display value proportionate to the gridsize */ | /* Make the precision of the display value proportionate to the grid-size. */ | ||||
| if (grid <= 0.01f) { | if (grid <= 0.01f) { | ||||
| conv_float = "%.6g"; | conv_float = "%.6g"; | ||||
| } | } | ||||
| else if (grid <= 0.1f) { | else if (grid <= 0.1f) { | ||||
| conv_float = "%.5g"; | conv_float = "%.5g"; | ||||
| } | } | ||||
| else if (grid <= 1.0f) { | else if (grid <= 1.0f) { | ||||
| ▲ Show 20 Lines • Show All 378 Lines • Show Last 20 Lines | |||||