Fix T66516: WPaint crash selecting bone with wire & face-mask

This commit is contained in:
Campbell Barton 2019-07-09 15:13:58 +10:00
parent 05d14c4560
commit ef5d0a927e
Notes: blender-bot 2023-02-14 11:07:28 +01:00
Referenced by issue #66516, Crash when select bone in weight paint with face paint mask and showing overlay wire frames
1 changed files with 1 additions and 0 deletions

View File

@ -2295,6 +2295,7 @@ void DRW_mesh_batch_cache_dirty_tag(Mesh *me, int mode)
GPU_VERTBUF_DISCARD_SAFE(cache->ordered.loop_pos_nor);
GPU_BATCH_DISCARD_SAFE(cache->batch.surface);
GPU_BATCH_DISCARD_SAFE(cache->batch.wire_loops);
GPU_BATCH_DISCARD_SAFE(cache->batch.wire_edges);
if (cache->surf_per_mat) {
for (int i = 0; i < cache->mat_len; i++) {
GPU_BATCH_DISCARD_SAFE(cache->surf_per_mat[i]);