mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[ue] Fix compatibility with UE 4.27
This commit is contained in:
parent
811ec28e54
commit
816f0d9db2
@ -56,8 +56,11 @@ void USpineAtlasAsset::PostInitProperties() {
|
||||
|
||||
void USpineAtlasAsset::Serialize(FArchive &Ar) {
|
||||
Super::Serialize(Ar);
|
||||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON &&
|
||||
!importData)
|
||||
#if ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION <= 27
|
||||
if (Ar.IsLoading() && Ar.UE4Ver() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON && !importData)
|
||||
#else
|
||||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON && !importData)
|
||||
#endif
|
||||
importData = NewObject<UAssetImportData>(this, TEXT("AssetImportData"));
|
||||
}
|
||||
|
||||
|
||||
@ -83,8 +83,11 @@ void USpineSkeletonDataAsset::GetAssetRegistryTags(
|
||||
|
||||
void USpineSkeletonDataAsset::Serialize(FArchive &Ar) {
|
||||
Super::Serialize(Ar);
|
||||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON &&
|
||||
!importData)
|
||||
#if ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION <= 27
|
||||
if (Ar.IsLoading() && Ar.UE4Ver() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON && !importData)
|
||||
#else
|
||||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON && !importData)
|
||||
#endif
|
||||
importData = NewObject<UAssetImportData>(this, TEXT("AssetImportData"));
|
||||
LoadInfo();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user