Skip to content

Commit 79aef1e

Browse files
committed
fixed non editor build
1 parent 8de7445 commit 79aef1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/UnrealEnginePython/Private/UObject/UEPyWorld.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,11 @@ PyObject *py_ue_set_current_level(ue_PyUObject *self, PyObject * args)
316316
if (!level)
317317
return PyErr_Format(PyExc_Exception, "argument is not a ULevel");
318318

319+
#if WITH_EDITOR
320+
319321
if (world->SetCurrentLevel(level))
320322
Py_RETURN_TRUE;
323+
#endif
321324

322325
Py_RETURN_FALSE;
323326
}

0 commit comments

Comments
 (0)