[ue4] Fixed re-import of atlas page textures.

This commit is contained in:
badlogic 2019-06-06 18:48:07 +02:00
parent f92fc97a5c
commit 48fd1024c0
2 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,8 @@ EReimportResult::Type USpineAtlasAssetFactory::Reimport (UObject* Obj) {
FString currentSourcePath, filenameNoExtension, unusedExtension;
const FString longPackagePath = FPackageName::GetLongPackagePath(asset->GetOutermost()->GetPathName());
FPaths::Split(UFactory::GetCurrentFilename(), currentSourcePath, filenameNoExtension, unusedExtension);
FString currentFileName = asset->GetAtlasFileName().ToString();
FPaths::Split(currentFileName, currentSourcePath, filenameNoExtension, unusedExtension);
LoadAtlas(asset, currentSourcePath, longPackagePath);