[Bf-blender-cvs] [d061154b932] master: Fix T66983 Wireframe Display in edit mode edges missing when overlays are disabled

Clément Foucault noreply at git.blender.org
Mon Jul 15 19:55:27 CEST 2019


Commit: d061154b93209df25862ea7c1efc1ee0f862620a
Author: Clément Foucault
Date:   Mon Jul 15 19:55:09 2019 +0200
Branches: master
https://developer.blender.org/rBd061154b93209df25862ea7c1efc1ee0f862620a

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

===================================================================

M	source/blender/draw/intern/draw_cache_impl_mesh.c

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c
index f3089231e8c..306031809d1 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -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);



More information about the Bf-blender-cvs mailing list