All Rust commits from Facepunch
Fix exceptions caused by removal of meshes with less materials than submeshes