From 0426866eb0967f92d521a4278dde8fe139e129c6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 10 Sep 2019 05:58:02 +1000 Subject: Fix T67637: Selected edges hard to see with wireframe Always show selected edges in wire/xray modes. --- source/blender/draw/modes/edit_mesh_mode.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/blender/draw/modes') diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index f8247d7929e..b76c17b981b 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -459,7 +459,12 @@ static void EDIT_MESH_cache_init(void *vedata) } if ((v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_EDGES) == 0) { if ((tsettings->selectmode & SCE_SELECT_EDGE) == 0) { - g_data->do_edges = false; + if ((v3d->shading.type < OB_SOLID) || (v3d->shading.flag & V3D_SHADING_XRAY)) { + /* Special case, when drawing wire, draw edges, see: T67637. */ + } + else { + g_data->do_edges = false; + } } } if ((v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_CREASES) == 0) { -- cgit v1.2.3