mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-02 05:39:07 +08:00
[ue4] Fixed re-import of atlas page textures.
This commit is contained in:
parent
f92fc97a5c
commit
48fd1024c0
Binary file not shown.
@ -106,7 +106,8 @@ EReimportResult::Type USpineAtlasAssetFactory::Reimport (UObject* Obj) {
|
|||||||
|
|
||||||
FString currentSourcePath, filenameNoExtension, unusedExtension;
|
FString currentSourcePath, filenameNoExtension, unusedExtension;
|
||||||
const FString longPackagePath = FPackageName::GetLongPackagePath(asset->GetOutermost()->GetPathName());
|
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);
|
LoadAtlas(asset, currentSourcePath, longPackagePath);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user