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:
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.
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue