Skip to content

Commit 718f73f

Browse files
author
Roberto De Ioris
committed
better support for non-tmap versions
1 parent c33ee14 commit 718f73f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Source/UnrealEnginePython/Private/PythonComponent.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ UObject *UPythonComponent::CallPythonComponentMethodObject(FString method_name,
426426
return nullptr;
427427
}
428428

429-
429+
#if ENGINE_MINOR_VERSION >= 15
430430
TMap<FString, FString> UPythonComponent::CallPythonComponentMethodMap(FString method_name, FString args){
431431
TMap<FString, FString> output_map;
432432

@@ -482,6 +482,8 @@ TMap<FString, FString> UPythonComponent::CallPythonComponentMethodMap(FString me
482482

483483
return output_map;
484484
}
485+
#endif
486+
485487
void UPythonComponent::CallPythonComponentMethodStringArray(FString method_name, FString args, TArray<FString> &output_strings)
486488
{
487489
if (!py_component_instance)

Source/UnrealEnginePython/Private/UObject/UEPyAnimSequence.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "UnrealEnginePythonPrivatePCH.h"
22
#include "Animation/AnimSequence.h"
33
#include "Animation/BlendSpaceBase.h"
4+
#include "Animation/AnimMontage.h"
45

56
PyObject *py_ue_anim_get_skeleton(ue_PyUObject * self, PyObject * args) {
67
ue_py_check(self);

0 commit comments

Comments
 (0)