Assign dummy names to COB materials.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@656 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
d1bebeba8e
commit
9a8de06e3a
|
@ -292,9 +292,8 @@ aiNode* COBImporter::BuildNodes(const Node& root,const Scene& scin,aiScene* fill
|
||||||
|
|
||||||
MaterialHelper* mat = new MaterialHelper();
|
MaterialHelper* mat = new MaterialHelper();
|
||||||
fill->mMaterials[fill->mNumMaterials++] = mat;
|
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);
|
mat->AddProperty(&s,AI_MATKEY_NAME);
|
||||||
|
|
||||||
if(int tmp = ndmesh.draw_flags & Mesh::WIRED ? 1 : 0) {
|
if(int tmp = ndmesh.draw_flags & Mesh::WIRED ? 1 : 0) {
|
||||||
|
|
Loading…
Reference in New Issue