Fix T66654: wireframe overlay crash in vertex paint in some cases
authorJeroen Bakker <j.bakker@atmind.nl>
Wed, 10 Jul 2019 15:05:15 +0000 (17:05 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 10 Jul 2019 15:05:19 +0000 (17:05 +0200)
Differential Revision: https://developer.blender.org/D5218

source/blender/draw/intern/draw_cache_impl_mesh.c

index 562e03ec9d7283469e6c93b8326bed837ad5db5a..f3089231e8cc09e2b14628a98cd1e04d2cdc5b2b 100644 (file)
@@ -2301,7 +2301,7 @@ void DRW_mesh_batch_cache_dirty_tag(Mesh *me, int mode)
           GPU_BATCH_DISCARD_SAFE(cache->surf_per_mat[i]);
         }
       }
-      cache->batch_ready &= ~(MBC_SURFACE | MBC_WIRE_LOOPS | MBC_SURF_PER_MAT);
+      cache->batch_ready &= ~(MBC_SURFACE | MBC_WIRE_EDGES | MBC_WIRE_LOOPS | MBC_SURF_PER_MAT);
       break;
     case BKE_MESH_BATCH_DIRTY_ALL:
       cache->is_dirty = true;