From 9a8de06e3a2828df0e22431d2ff2486ad6d92433 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Tue, 6 Apr 2010 00:55:12 +0000 Subject: [PATCH] Assign dummy names to COB materials. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@656 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/COBLoader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {