From 42881128036a8866dcdb0b594eb855eb7b600b77 Mon Sep 17 00:00:00 2001 From: David-Vodhanel <39318287+David-Vodhanel@users.noreply.github.com> Date: Sat, 9 Apr 2022 17:52:51 -0700 Subject: [PATCH] Compile Fix for UE4.27 --- .../Source/DazToUnreal/Private/DazToUnrealUtils.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Unreal/UnrealPlugin/DazToUnreal/Source/DazToUnreal/Private/DazToUnrealUtils.cpp b/Unreal/UnrealPlugin/DazToUnreal/Source/DazToUnreal/Private/DazToUnrealUtils.cpp index b6882c6..b1392f7 100644 --- a/Unreal/UnrealPlugin/DazToUnreal/Source/DazToUnreal/Private/DazToUnrealUtils.cpp +++ b/Unreal/UnrealPlugin/DazToUnreal/Source/DazToUnreal/Private/DazToUnrealUtils.cpp @@ -56,11 +56,7 @@ bool FDazToUnrealUtils::IsModelFacingX(UObject* MeshObject) } if (UStaticMesh* StaticMesh = Cast(MeshObject)) { -#if ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION < 27 if (UAssetImportData* AssetImportData = StaticMesh->AssetImportData) -#else - if (UAssetImportData* AssetImportData = StaticMesh->GetAssetImportData()) -#endif { UFbxAssetImportData* FbxAssetImportData = Cast(AssetImportData); if (FbxAssetImportData != nullptr && FbxAssetImportData->bForceFrontXAxis)