Fix T85178: edit-mesh show_edges overlay option toggles face-dots

When this behavior was added it made sense,
since then show_edges has changed to make edge-display more subtle
(see 1a4b60c30d) instead of removing
edge-selection display entirely.
This commit is contained in:
Campbell Barton 2021-01-29 22:08:22 +11:00
parent 6f88053d85
commit cf91fb347d
Notes: blender-bot 2023-02-14 04:10:15 +01:00
Referenced by issue #85178, Face dot overlay can be toggled by wrong checkbox
1 changed files with 0 additions and 6 deletions

View File

@ -110,12 +110,6 @@ void OVERLAY_edit_mesh_cache_init(OVERLAY_Data *vedata)
float face_alpha = (do_occlude_wire || !pd->edit_mesh.do_faces) ? 0.0f : 1.0f;
GPUTexture **depth_tex = (pd->edit_mesh.do_zbufclip) ? &dtxl->depth : &txl->dummy_depth_tx;
if (select_face && !pd->edit_mesh.do_faces && pd->edit_mesh.do_edges) {
/* Force display of face centers in this case because that's
* the only way to see if a face is selected. */
show_face_dots = true;
}
/* Run Twice for in-front passes. */
for (int i = 0; i < 2; i++) {
/* Complementary Depth Pass */