Assign dummy names to COB materials.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@656 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2010-04-06 00:55:12 +00:00
parent d1bebeba8e
commit 9a8de06e3a
1 changed files with 1 additions and 2 deletions

View File

@ -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_")<<fill->mNumMeshes<<"_"<<min->matnum);
mat->AddProperty(&s,AI_MATKEY_NAME);
if(int tmp = ndmesh.draw_flags & Mesh::WIRED ? 1 : 0) {