[Bf-blender-cvs] [8c76da1f6b8] soc-2021-knife-tools: Knife: Change visible angle text precision
Cian Jinks
noreply at git.blender.org
Wed Jun 23 15:07:59 CEST 2021
Commit: 8c76da1f6b8af4a0df5976f05ffdf3db92367f24
Author: Cian Jinks
Date: Wed Jun 23 14:04:33 2021 +0100
Branches: soc-2021-knife-tools
https://developer.blender.org/rB8c76da1f6b8af4a0df5976f05ffdf3db92367f24
Knife: Change visible angle text precision
Now displays 3 digits instead of 2. This means one decimal place is almost always displayed,
except in the case where the cut was started on an edge.
===================================================================
M source/blender/editors/mesh/editmesh_knife.c
===================================================================
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index cbef3e28cad..e47e607c475 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -521,7 +521,7 @@ static void knifetool_draw_angle(const KnifeTool_OpData *kcd,
const float bg_margin = 4.0f * U.dpi_fac;
const float cap_size = 4.0f * U.dpi_fac;
const int font_size = 14 * U.pixelsize;
- const int angle_precision = 2;
+ const int angle_precision = 3;
/* Angle arc in 3d space. */
GPU_blend(GPU_BLEND_ALPHA);
More information about the Bf-blender-cvs
mailing list