- filtered some more invalid characters from collada export URL generation
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1189 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/5/head
parent
62b2ca3c1b
commit
7a0c5a431e
|
@ -227,6 +227,10 @@ void ColladaExporter::WriteMaterials()
|
|||
size_t pos;
|
||||
while( (pos = materials[a].name.find( '#')) != std::string::npos )
|
||||
materials[a].name[pos] = 'x';
|
||||
while( (pos = materials[a].name.find( ' ')) != std::string::npos )
|
||||
materials[a].name[pos] = '_';
|
||||
while( (pos = materials[a].name.find( '"')) != std::string::npos )
|
||||
materials[a].name[pos] = '_';
|
||||
|
||||
ReadMaterialSurface( materials[a].ambient, mat, aiTextureType_AMBIENT, AI_MATKEY_COLOR_AMBIENT);
|
||||
if( !materials[a].ambient.texture.empty() ) numTextures++;
|
||||
|
|
Loading…
Reference in New Issue