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
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user