From fe343d665ae9dbccb0a0ace097f3dcfd965501ef Mon Sep 17 00:00:00 2001 From: rdeioris Date: Sun, 3 Mar 2024 15:56:21 +0100 Subject: [PATCH] fixed ue5 and 5.1 --- Source/glTFRuntime/Private/glTFRuntimeParserStaticMeshes.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/glTFRuntime/Private/glTFRuntimeParserStaticMeshes.cpp b/Source/glTFRuntime/Private/glTFRuntimeParserStaticMeshes.cpp index 7b834ffa..11fe1ffc 100644 --- a/Source/glTFRuntime/Private/glTFRuntimeParserStaticMeshes.cpp +++ b/Source/glTFRuntime/Private/glTFRuntimeParserStaticMeshes.cpp @@ -13,10 +13,14 @@ #include "Runtime/Launch/Resources/Version.h" #include "StaticMeshResources.h" #if ENGINE_MAJOR_VERSION >= 5 +#if ENGINE_MINOR_VERSION < 2 +#include "MeshCardRepresentation.h" +#else #undef UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2 #define UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2 0 #include "MeshCardBuild.h" #endif +#endif FglTFRuntimeStaticMeshContext::FglTFRuntimeStaticMeshContext(TSharedRef InParser, const FglTFRuntimeStaticMeshConfig& InStaticMeshConfig) : Parser(InParser),