Skip to content

Commit 5d0a5c3

Browse files
committed
merge latest from pr_multi_out_params
2 parents 024b985 + 6b269bc commit 5d0a5c3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Source/UnrealEnginePython/Private/PythonFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void UPythonFunction::CallPythonCallable(FFrame& Stack, RESULT_DECL)
2626

2727
bool on_error = false;
2828
bool is_static = function->HasAnyFunctionFlags(FUNC_Static);
29-
FOutParmRec *OutParms = nullptr;
29+
FOutParmRec *OutParms = nullptr;
3030

3131
// count the number of arguments
3232
Py_ssize_t argn = (Context && !is_static) ? 1 : 0;

Source/UnrealEnginePython/Private/UEPyModule.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
// marked as output parameters, but if they are also marked as const refs, then they are actually input parameters)
1919
#define PROP_IS_OUT_PARAM(prop) ((prop)->HasAllPropertyFlags(CPF_Parm|CPF_OutParm) && !(prop)->HasAllPropertyFlags(CPF_ReferenceParm|CPF_ConstParm))
2020

21-
2221
UWorld *ue_get_uworld(ue_PyUObject *);
2322
AActor *ue_get_actor(ue_PyUObject *);
2423
PyObject *ue_py_convert_property(UProperty *, uint8 *, int32);

Source/UnrealEnginePython/UnrealEnginePython.Build.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ private string DiscoverPythonPath(string[] knownPaths, string binaryPath)
292292
if (!string.IsNullOrEmpty(environmentPath))
293293
paths.Insert(0, environmentPath);
294294

295+
// look in an alternate custom location
296+
environmentPath = System.Environment.GetEnvironmentVariable("UNREALENGINEPYTHONHOME");
297+
if (!string.IsNullOrEmpty(environmentPath))
298+
paths.Insert(0, environmentPath);
299+
295300
foreach (string path in paths)
296301
{
297302
string actualPath = path;

0 commit comments

Comments
 (0)