11
22#include " PythonFunction.h"
33#include " UEPyModule.h"
4+ #include " UObject/UEPyUPropertyBackwardsCompatibility.h"
45
56
67void UPythonFunction::SetPyCallable (PyObject *callable)
@@ -30,7 +31,7 @@ void UPythonFunction::CallPythonCallable(FFrame& Stack, RESULT_DECL)
3031
3132 // count the number of arguments
3233 Py_ssize_t argn = (Context && !is_static) ? 1 : 0 ;
33- TFieldIterator<UProperty > IArgs (function);
34+ TFieldIterator<FProperty > IArgs (function);
3435 for (; IArgs && ((IArgs->PropertyFlags & (CPF_Parm | CPF_ReturnParm)) == CPF_Parm); ++IArgs) {
3536 argn++;
3637 }
@@ -56,7 +57,7 @@ void UPythonFunction::CallPythonCallable(FFrame& Stack, RESULT_DECL)
5657
5758 // is it a blueprint call ?
5859 if (*Stack.Code == EX_EndFunctionParms) {
59- for (UProperty *prop = (UProperty *)function->Children ; prop; prop = (UProperty *)prop->Next ) {
60+ for (FProperty *prop = (FProperty *)function->Children ; prop; prop = (FProperty *)prop->Next ) {
6061 if (prop->PropertyFlags & CPF_ReturnParm)
6162 continue ;
6263 if (!on_error) {
@@ -75,7 +76,7 @@ void UPythonFunction::CallPythonCallable(FFrame& Stack, RESULT_DECL)
7576 // UE_LOG(LogPython, Warning, TEXT("BLUEPRINT CALL"));
7677 frame = (uint8 *)FMemory_Alloca (function->PropertiesSize );
7778 FMemory::Memzero (frame, function->PropertiesSize );
78- for (UProperty *prop = (UProperty *)function->Children ; *Stack.Code != EX_EndFunctionParms; prop = (UProperty *)prop->Next ) {
79+ for (FProperty *prop = (FProperty *)function->Children ; *Stack.Code != EX_EndFunctionParms; prop = (FProperty *)prop->Next ) {
7980 Stack.Step (Stack.Object , prop->ContainerPtrToValuePtr <uint8>(frame));
8081 if (prop->PropertyFlags & CPF_ReturnParm)
8182 continue ;
@@ -107,7 +108,7 @@ void UPythonFunction::CallPythonCallable(FFrame& Stack, RESULT_DECL)
107108 }
108109
109110 // get return value (if required)
110- UProperty *return_property = function->GetReturnProperty ();
111+ FProperty *return_property = function->GetReturnProperty ();
111112 if (return_property && function->ReturnValueOffset != MAX_uint16) {
112113#if defined(UEPY_MEMORY_DEBUG)
113114 UE_LOG (LogPython, Warning, TEXT (" FOUND RETURN VALUE" ));
0 commit comments