Fix T66983 Wireframe Display in edit mode edges missing when overlays are disabled

This commit is contained in:
Clément Foucault 2019-07-15 19:55:09 +02:00
parent 4404a0dcd4
commit d061154b93
Notes: blender-bot 2023-02-14 07:36:17 +01:00
Referenced by issue #67018, Crash when switching to the UV Editing workspace
Referenced by issue #66983, Wireframe Display in edit mode edges missing when overlays are  disabled
1 changed files with 1 additions and 1 deletions

View File

@ -3018,7 +3018,7 @@ static void mesh_create_loop_edge_fac(MeshRenderData *rdata, GPUVertBuf *vbo)
BM_ITER_ELEM (loop, &iter_loop, efa, BM_LOOPS_OF_FACE) {
float ratio = mesh_loop_edge_factor_get(
efa->no, loop->v->co, loop->v->no, loop->next->v->co);
vertbuf_raw_step(&wd_step, ratio * 255);
vertbuf_raw_step(&wd_step, ratio * 253 + 1);
}
}
BLI_assert(GPU_vertbuf_raw_used(&wd_step) == loop_len);