diff --git a/Source/glTFRuntime/Private/glTFRuntimeParser.cpp b/Source/glTFRuntime/Private/glTFRuntimeParser.cpp index 15f92230..13746e8b 100644 --- a/Source/glTFRuntime/Private/glTFRuntimeParser.cpp +++ b/Source/glTFRuntime/Private/glTFRuntimeParser.cpp @@ -7,7 +7,7 @@ #include "Serialization/JsonSerializer.h" #include "Animation/Skeleton.h" #include "Materials/Material.h" -#if ENGINE_MAJOR_VERSION >= 5 +#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 1 #include "MaterialDomain.h" #else #include "MaterialShared.h" @@ -16,7 +16,7 @@ #include "Misc/Compression.h" #include "Misc/Paths.h" #include "Interfaces/IPluginManager.h" -#if ENGINE_MAJOR_VERSION >= 5 +#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 1 #include "RenderMath.h" #else #include "RenderUtils.h" diff --git a/Source/glTFRuntime/Private/glTFRuntimeParserMaterials.cpp b/Source/glTFRuntime/Private/glTFRuntimeParserMaterials.cpp index d04e4266..830e1b6c 100644 --- a/Source/glTFRuntime/Private/glTFRuntimeParserMaterials.cpp +++ b/Source/glTFRuntime/Private/glTFRuntimeParserMaterials.cpp @@ -7,7 +7,7 @@ #include "IImageWrapper.h" #include "ImageUtils.h" #include "Misc/FileHelper.h" -#if ENGINE_MAJOR_VERSION >= 5 +#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 1 #include "MaterialDomain.h" #else #include "MaterialShared.h" diff --git a/Source/glTFRuntime/Private/glTFRuntimeParserSkeletalMeshes.cpp b/Source/glTFRuntime/Private/glTFRuntimeParserSkeletalMeshes.cpp index 5a630774..2a7e2535 100644 --- a/Source/glTFRuntime/Private/glTFRuntimeParserSkeletalMeshes.cpp +++ b/Source/glTFRuntime/Private/glTFRuntimeParserSkeletalMeshes.cpp @@ -25,7 +25,7 @@ #endif #endif #include "Engine/SkeletalMeshSocket.h" -#if ENGINE_MAJOR_VERSION >= 5 +#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 1 #include "Engine/SkinnedAssetCommon.h" #else #include "Engine/SkeletalMesh.h"