Fix T64551 Crash on leaving local view on the shading tab
authorClément Foucault <foucault.clem@gmail.com>
Tue, 14 May 2019 15:15:48 +0000 (17:15 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 14 May 2019 15:15:48 +0000 (17:15 +0200)
commite9b282617a93a50b9763bf5130325a0c553e165e
treec887917878039904f1851b7aa364968d44276ed7
parent8437519d0282e4d6ccb2f22d042bcaba2ac7d603
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.
source/blender/draw/intern/draw_cache_impl_mesh.c