Fix T64551 Crash on leaving local view on the shading tab

Was causing by garbage collection free the surf_per_mat_tris array.
The cache validate did not take care of ensuring the array was alloc again.
This commit is contained in:
Clément Foucault 2019-05-14 17:15:48 +02:00
parent 8437519d02
commit e9b282617a
Notes: blender-bot 2023-02-14 10:21:10 +01:00
Referenced by issue #64551, Crash on leaving local view on the shading tab.
1 changed files with 4 additions and 0 deletions

View File

@ -2084,6 +2084,10 @@ static bool mesh_batch_cache_valid(Mesh *me)
return false;
}
if (cache->mat_len != mesh_render_mat_len_get(me)) {
return false;
}
return true;
}