diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-09 22:58:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-09 22:59:50 +0300 |
commit | 0426866eb0967f92d521a4278dde8fe139e129c6 (patch) | |
tree | c02cc57e95adcb8ac75371eb4125284a1bdfb68e /source/blender/draw | |
parent | f2176b3ff3c5df9ab43d1b0489e3bb350d1015f6 (diff) |
Fix T67637: Selected edges hard to see with wireframe
Always show selected edges in wire/xray modes.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 7 |
1 files changed, 6 insertions, 1 deletions
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) { |