diff --git a/code/COBLoader.cpp b/code/COBLoader.cpp index bb71f90c3..611406668 100644 --- a/code/COBLoader.cpp +++ b/code/COBLoader.cpp @@ -292,9 +292,8 @@ aiNode* COBImporter::BuildNodes(const Node& root,const Scene& scin,aiScene* fill MaterialHelper* mat = new MaterialHelper(); fill->mMaterials[fill->mNumMaterials++] = mat; - aiString s; - s.Set(min->type); + const aiString s(format("#mat_")<mNumMeshes<<"_"<matnum); mat->AddProperty(&s,AI_MATKEY_NAME); if(int tmp = ndmesh.draw_flags & Mesh::WIRED ? 1 : 0) {