Fixing an issue with flat shaded multimat meshes