Fix T67637: Selected edges hard to see with wireframe

Always show selected edges in wire/xray modes.
This commit is contained in:
Campbell Barton
2019-09-10 05:58:02 +10:00
parent f2176b3ff3
commit 0426866eb0
2 changed files with 9 additions and 2 deletions

View File

@@ -2099,7 +2099,7 @@ class VIEW3D_MT_object_relations(Menu):
layout = self.layout
layout.operator("object.proxy_make", text="Make Proxy...")
if bpy.app.use_override_library:
layout.operator("object.make_override_library", text="Make Library Override...")
@@ -5613,6 +5613,7 @@ class VIEW3D_PT_overlay_edit_mesh(Panel):
layout = self.layout
view = context.space_data
shading = view.shading
overlay = view.overlay
display_all = overlay.show_overlays
@@ -5622,6 +5623,7 @@ class VIEW3D_PT_overlay_edit_mesh(Panel):
split = col.split()
sub = split.column()
sub.active = not ((shading.type == 'WIREFRAME') or shading.show_xray)
sub.prop(overlay, "show_edges", text="Edges")
sub = split.column()
sub.prop(overlay, "show_faces", text="Faces")

View File

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