[Bf-blender-cvs] [a58548f6f7f] tmp-batch-cache-cleanup: Mesh Batch Cache: Fix bitmap test for loose verts

Clément Foucault noreply at git.blender.org
Tue Jul 23 00:05:54 CEST 2019


Commit: a58548f6f7f6dce10f35dcad2fc0a402307768dc
Author: Clément Foucault
Date:   Mon Jul 22 18:29:31 2019 +0200
Branches: tmp-batch-cache-cleanup
https://developer.blender.org/rBa58548f6f7f6dce10f35dcad2fc0a402307768dc

Mesh Batch Cache: Fix bitmap test for loose verts

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

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 9c5b003eb3d..094cff77ea5 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -563,7 +563,7 @@ static MeshRenderData *mesh_render_data_create(Mesh *me,
 
       mr->lverts = MEM_mallocN(mr->vert_len * sizeof(*mr->lverts), __func__);
       for (int v = 0; v < mr->vert_len; v++) {
-        if (BLI_BITMAP_TEST(lvert_map, v)) {
+        if (!BLI_BITMAP_TEST(lvert_map, v)) {
           mr->lverts[mr->vert_loose_len++] = v;
         }
       }



More information about the Bf-blender-cvs mailing list