Skip to content

Commit 3d3239b

Browse files
author
Roberto De Ioris
committed
fixed extenders in threaded builds
1 parent 7184cee commit 3d3239b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Source/UnrealEnginePython/Private/Slate/UEPySlate.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ class FPythonSlateCommands : public TCommands<FPythonSlateCommands>
851851

852852
void MenuPyBuilder(FMenuBuilder &Builder)
853853
{
854+
FScopePythonGIL gil;
854855
PyObject *ret = PyObject_CallFunction(py_callable, (char *)"O", py_ue_new_fmenu_builder(Builder));
855856
if (!ret)
856857
{
@@ -868,6 +869,7 @@ class FPythonSlateCommands : public TCommands<FPythonSlateCommands>
868869

869870
void ToolBarBuilder(FToolBarBuilder &Builder)
870871
{
872+
FScopePythonGIL gil;
871873
PyObject *ret = PyObject_CallFunction(py_callable, (char *)"O", py_ue_new_ftool_bar_builder(Builder));
872874
if (!ret)
873875
{

0 commit comments

Comments
 (0)