mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +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
|
|
@ -147,7 +147,7 @@ void ShapeAnimationAsset::initializeAsset(void)
|
|||
if (!mIsEmbedded)
|
||||
{
|
||||
//If we're not embedded, we need to load in our initial shape and do some prepwork
|
||||
mFilePath = expandAssetFilePath(mFileName);
|
||||
mFilePath = getOwned() ? expandAssetFilePath(mFileName) : mFilePath;
|
||||
|
||||
mSourceShape = ResourceManager::get().load(mFilePath);
|
||||
|
||||
|
|
@ -177,14 +177,14 @@ void ShapeAnimationAsset::setAnimationFile(const char* pAnimationFile)
|
|||
AssertFatal(pAnimationFile != NULL, "Cannot use a NULL animation file.");
|
||||
|
||||
// Fetch image file.
|
||||
pAnimationFile = StringTable->insert(pAnimationFile);
|
||||
pAnimationFile = StringTable->insert(pAnimationFile, true);
|
||||
|
||||
// Ignore no change,
|
||||
if (pAnimationFile == mFileName)
|
||||
return;
|
||||
|
||||
// Update.
|
||||
mFileName = StringTable->insert(pAnimationFile);
|
||||
mFileName = getOwned() ? expandAssetFilePath(pAnimationFile) : pAnimationFile;
|
||||
|
||||
// Refresh the asset.
|
||||
refreshAsset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue