[Bf-blender-cvs] [ee0c2e9b870] master: Edit Mesh: Improve selected double vertices visibility

Clément Foucault noreply at git.blender.org
Mon Jan 14 23:43:25 CET 2019


Commit: ee0c2e9b870ced1d5ed720b8c4e160b7058f147c
Author: Clément Foucault
Date:   Mon Jan 14 23:42:52 2019 +0100
Branches: master
https://developer.blender.org/rBee0c2e9b870ced1d5ed720b8c4e160b7058f147c

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

===================================================================

M	source/blender/draw/intern/draw_common.c

===================================================================

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()) {



More information about the Bf-blender-cvs mailing list