Browse Source

Additional filters for material names.

OTHGMars 6 years ago
parent
commit
a4a97cc3d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/ts/assimp/assimpAppMaterial.cpp

+ 1 - 1
Engine/source/ts/assimp/assimpAppMaterial.cpp

@@ -39,7 +39,7 @@ String AppMaterial::cleanString(const String& str)
    String cleanStr(str);
    String cleanStr(str);
 
 
    // Replace invalid characters with underscores
    // Replace invalid characters with underscores
-   const String badChars(" -,.+=*/[]");
+   const String badChars(" -,.+=*/[]%$~;:");
    for (String::SizeType i = 0; i < badChars.length(); i++)
    for (String::SizeType i = 0; i < badChars.length(); i++)
       cleanStr.replace(badChars[i], '_');
       cleanStr.replace(badChars[i], '_');