mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Additional filters for material names.
This commit is contained in:
parent
98c22d0f1b
commit
bc98c2e85b
1 changed files with 1 additions and 1 deletions
|
|
@ -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], '_');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue