Overlay: Edit Mode: Fix vertices depth test not always on

This commit is contained in:
Clément Foucault 2020-01-13 15:35:22 +01:00
parent dfa3f51e52
commit 820794e162
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@ void OVERLAY_edit_mesh_cache_init(OVERLAY_Data *vedata)
DRW_shgroup_uniform_bool_copy(grp, "selectEdges", pd->edit_mesh.do_edges || select_edge);
/* Verts */
state |= DRW_STATE_WRITE_DEPTH;
DRW_PASS_CREATE(psl->edit_mesh_verts_ps[i], state | pd->clipping_state);
if (select_vert) {