- 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-9d2fd5bffc1f
pull/5/head
ulfjorensen 2012-03-05 22:00:00 +00:00
parent 62b2ca3c1b
commit 7a0c5a431e
1 changed files with 4 additions and 0 deletions

View File

@ -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++;