Merge pull request #1459 from marauder2k9-torque/BUGFIX-reported-bug-by-steve-16052025

Update assetImporter.cpp
This commit is contained in:
Brian Roberts 2025-05-16 09:35:33 -05:00 committed by GitHub
commit 3fd333d3a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2824,7 +2824,7 @@ Torque::Path AssetImporter::importImageAsset(AssetImportObject* assetItem)
StringTableEntry assetName = StringTable->insert(assetItem->assetName.c_str());
String imageFileName = assetItem->filePath.getFullPath();
String imageFileName = assetItem->filePath.getFullFileName();
String assetPath = targetPath + "/" + imageFileName;
String tamlPath = targetPath + "/" + assetName + ".asset.taml";
String originalPath = assetItem->filePath.getFullPath().c_str();
@ -2841,7 +2841,7 @@ Torque::Path AssetImporter::importImageAsset(AssetImportObject* assetItem)
#endif
newAsset->setAssetName(assetName);
newAsset->setImageFile(imageFileName.c_str());
newAsset->setImageFile(assetPath.c_str());
//If it's not a re-import, check that the file isn't being in-place imported. If it isn't, store off the original
//file path for reimporting support later