diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-19 16:07:44 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-12-20 00:56:15 +0300 |
commit | a9706476e36c073111e01b4ec6544fbb7f471173 (patch) | |
tree | ea2dc8b75916bb716bc61d166fce5a02f644839f /source | |
parent | c0e6cbadfcb003d8ba2d024eb95e6471f19f1d79 (diff) |
Mesh Batch Cache: Fix uninitialized loop variable
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index b84604ab743..9a0daf244ef 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -4267,7 +4267,7 @@ static void mesh_create_loops_lines( BM_ITER_MESH (bm_face, &iter, bm, BM_FACES_OF_MESH) { /* use_hide always for edit-mode */ if (!BM_elem_flag_test(bm_face, BM_ELEM_HIDDEN)) { - for (int i; i < bm_face->len; i++) { + for (int i = 0; i < bm_face->len; i++) { GPU_indexbuf_add_generic_vert(&elb, v_index + i); } /* Finish loop and restart primitive. */ |