Fix T66983 Wireframe Display in edit mode edges missing when overlays are disabled
authorClément Foucault <foucault.clem@gmail.com>
Mon, 15 Jul 2019 17:55:09 +0000 (19:55 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 15 Jul 2019 17:55:09 +0000 (19:55 +0200)
source/blender/draw/intern/draw_cache_impl_mesh.c

index f3089231e8cc09e2b14628a98cd1e04d2cdc5b2b..306031809d19169c7476aeaa85e6b1aec78a4a88 100644 (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);