Dispose multiMaterial

Hi
I just noticed that mesh.dispose(), with or without params do not dispose material too if typeof material is multimaterial.
https://playground.babylonjs.com/#G6KMYR
I don’t know if this is expected (in this case I have to go trough all submaterials of material to dispose) or is a bug.

1 Like

Definitely a bug
I will fix that

2 Likes