mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Compares path and filename, excludes png in case the user swapped a dds for a png or the like
This commit is contained in:
parent
029427d51c
commit
41957cb98f
|
|
@ -289,7 +289,7 @@ StringTableEntry ImageAsset::getAssetIdByFilename(StringTableEntry fileName)
|
|||
Torque::Path temp1 = temp->getImageFile();
|
||||
Torque::Path temp2 = fileName;
|
||||
|
||||
if (temp1 == temp2)
|
||||
if (temp1.getPath() == temp2.getPath() && temp1.getFileName() == temp2.getFileName())
|
||||
{
|
||||
return imgAsset;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue