mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[ue] Fixes #2691
This commit is contained in:
parent
dc2bcb02e1
commit
1da920ad74
@ -56,7 +56,7 @@ void USpineAtlasAsset::PostInitProperties() {
|
||||
|
||||
void USpineAtlasAsset::Serialize(FArchive &Ar) {
|
||||
Super::Serialize(Ar);
|
||||
if (Ar.IsLoading() && Ar.UE4Ver() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON &&
|
||||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON &&
|
||||
!importData)
|
||||
importData = NewObject<UAssetImportData>(this, TEXT("AssetImportData"));
|
||||
}
|
||||
|
||||
@ -83,7 +83,7 @@ void USpineSkeletonDataAsset::GetAssetRegistryTags(
|
||||
|
||||
void USpineSkeletonDataAsset::Serialize(FArchive &Ar) {
|
||||
Super::Serialize(Ar);
|
||||
if (Ar.IsLoading() && Ar.UE4Ver() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON &&
|
||||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON &&
|
||||
!importData)
|
||||
importData = NewObject<UAssetImportData>(this, TEXT("AssetImportData"));
|
||||
LoadInfo();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user