Skip to content

Commit ddd9c37

Browse files
author
Roberto De Ioris
committed
updated Automation module to the new multitrheading api
1 parent 14de024 commit ddd9c37

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Source/PythonAutomation/Private/UEPyFAutomationEditorCommonUtils.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
static PyObject *py_ue_fautomation_editor_common_utils_run_pie(PyObject *cls, PyObject * args)
99
{
10+
Py_BEGIN_ALLOW_THREADS;
1011
FAutomationEditorCommonUtils::RunPIE();
12+
Py_END_ALLOW_THREADS;
1113
Py_RETURN_NONE;
1214
}
1315

@@ -16,7 +18,9 @@ static PyObject *py_ue_fautomation_editor_common_utils_load_map(PyObject *cls, P
1618
char *map_name;
1719
if (!PyArg_ParseTuple(args, "s:load_map", &map_name))
1820
return nullptr;
21+
Py_BEGIN_ALLOW_THREADS;
1922
FAutomationEditorCommonUtils::LoadMap(FString(UTF8_TO_TCHAR(map_name)));
23+
Py_END_ALLOW_THREADS;
2024
Py_RETURN_NONE;
2125
}
2226

0 commit comments

Comments
 (0)