Selaa lähdekoodia

Update assetImporter.cpp

image asset importer was doubling up on the filepath.
marauder2k7 4 kuukautta sitten
vanhempi
commit
a9240b87f4
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Engine/source/T3D/assets/assetImporter.cpp

+ 2 - 2
Engine/source/T3D/assets/assetImporter.cpp

@@ -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