From a97ae1907efa63fa3c516bbe22bb5957b45c85b5 Mon Sep 17 00:00:00 2001 From: panda Date: Fri, 15 Nov 2024 14:14:39 +0800 Subject: [PATCH] try fix again --- unreal/Puerts/Source/JsEnv/Private/Gen/FVector_Wrap.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/unreal/Puerts/Source/JsEnv/Private/Gen/FVector_Wrap.cpp b/unreal/Puerts/Source/JsEnv/Private/Gen/FVector_Wrap.cpp index f7d303b830..686e66e8bb 100644 --- a/unreal/Puerts/Source/JsEnv/Private/Gen/FVector_Wrap.cpp +++ b/unreal/Puerts/Source/JsEnv/Private/Gen/FVector_Wrap.cpp @@ -73,6 +73,13 @@ struct AutoRegisterForFVector .Method("IsNormalized", MakeFunction(&FVector::IsNormalized)) .Method("Normalize", MakeFunction(&FVector::Normalize, SMALL_NUMBER)) .Method("GetUnsafeNormal", MakeFunction(&FVector::GetUnsafeNormal)) +#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3 + .Method("GetSafeNormal", MakeFunction(&FVector::GetSafeNormal, SMALL_NUMBER, FVector::ZeroVector)) + .Method("GetSafeNormal2D", MakeFunction(&FVector::GetSafeNormal2D, SMALL_NUMBER, FVector::ZeroVector)) +#else + .Method("GetSafeNormal", MakeFunction(&FVector::GetSafeNormal, SMALL_NUMBER)) + .Method("GetSafeNormal2D", MakeFunction(&FVector::GetSafeNormal2D, SMALL_NUMBER)) +#endif .Method("GetSafeNormal", MakeFunction(&FVector::GetSafeNormal, SMALL_NUMBER, FVector::ZeroVector)) .Method("GetSafeNormal2D", MakeFunction(&FVector::GetSafeNormal2D, SMALL_NUMBER, FVector::ZeroVector)) .Method(