Fix T66516: WPaint crash selecting bone with wire & face-mask
This commit is contained in:
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
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue