mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Enforces filename string case sensitivity for assets' internal filenames, which avoids the stringtable messing with the case preventing file name case sensitivity issues.
This commit is contained in:
parent
c04f3ae166
commit
cfe122f714
18 changed files with 109 additions and 102 deletions
|
|
@ -156,10 +156,10 @@ void GameObjectAsset::setScriptFile(const char* pScriptFile)
|
|||
AssertFatal(pScriptFile != NULL, "Cannot use a NULL script file.");
|
||||
|
||||
// Fetch image file.
|
||||
pScriptFile = StringTable->insert(pScriptFile);
|
||||
pScriptFile = StringTable->insert(pScriptFile, true);
|
||||
|
||||
// Ignore no change,
|
||||
if (pScriptFile == mScriptFile)
|
||||
if (pScriptFile == mTAMLFile)
|
||||
return;
|
||||
|
||||
// Update.
|
||||
|
|
@ -176,7 +176,7 @@ void GameObjectAsset::setTAMLFile(const char* pTAMLFile)
|
|||
AssertFatal(pTAMLFile != NULL, "Cannot use a NULL TAML file.");
|
||||
|
||||
// Fetch image file.
|
||||
pTAMLFile = StringTable->insert(pTAMLFile);
|
||||
pTAMLFile = StringTable->insert(pTAMLFile, true);
|
||||
|
||||
// Ignore no change,
|
||||
if (pTAMLFile == mTAMLFile)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue