diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-01-15 01:42:52 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-01-15 01:43:17 +0300 |
commit | ee0c2e9b870ced1d5ed720b8c4e160b7058f147c (patch) | |
tree | 0e0ee895273bb938e090fab4098993dcd8ed8e89 /source | |
parent | 21fedfbca0219781e7c17bcd7be84f6a3746e4e9 (diff) |
Edit Mesh: Improve selected double vertices visibility
The issue is that the edge fix geometry goes on top of the actual drawn
points.
This commit reduce the edge fix size to the strict minimum but does not
get rid of it.
Related to T60139
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/intern/draw_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_common.c b/source/blender/draw/intern/draw_common.c index 15a8675f55d..934aebcad83 100644 --- a/source/blender/draw/intern/draw_common.c +++ b/source/blender/draw/intern/draw_common.c @@ -150,7 +150,7 @@ void DRW_globals_update(void) ts.sizeVertex = U.pixelsize * (max_ff(1.0f, UI_GetThemeValuef(TH_VERTEX_SIZE) * (float)M_SQRT2 / 2.0f)); ts.sizeFaceDot = U.pixelsize * UI_GetThemeValuef(TH_FACEDOT_SIZE); ts.sizeEdge = U.pixelsize * (1.0f / 2.0f); /* TODO Theme */ - ts.sizeEdgeFix = U.pixelsize * (0.5f + 2.0f * (2.0f * (MAX2(ts.sizeVertex, ts.sizeEdge)) * (float)M_SQRT1_2)); + ts.sizeEdgeFix = U.pixelsize * (0.5f + 2.0f * (2.0f * (ts.sizeEdge * (float)M_SQRT1_2))); /* Color management. */ if (DRW_state_is_image_render()) { |