Skip to content

Commit

Permalink
Merge pull request #13 from bernhardrieder/fix-packaging-ue4.22
Browse files Browse the repository at this point in the history
Fix packaging for UE4.22
  • Loading branch information
getnamo authored Apr 15, 2019
2 parents a19e5b1 + cef58eb commit d6cf725
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/UnrealEnginePython/Private/UEPyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,9 @@ static PyMethodDef ue_PyUObject_methods[] = {

{ "get_levels", (PyCFunction)py_ue_get_levels, METH_VARARGS, "" },
{ "get_current_level", (PyCFunction)py_ue_get_current_level, METH_VARARGS, "" },
#if WITH_EDITORONLY_DATA
{ "set_current_level", (PyCFunction)py_ue_set_current_level, METH_VARARGS, "" },
#endif

#if WITH_EDITOR
{ "get_level_script_blueprint", (PyCFunction)py_ue_get_level_script_blueprint, METH_VARARGS, "" },
Expand Down
2 changes: 2 additions & 0 deletions Source/UnrealEnginePython/Private/UObject/UEPyWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ PyObject *py_ue_get_current_level(ue_PyUObject *self, PyObject * args)
Py_RETURN_UOBJECT(level);
}

#if WITH_EDITORONLY_DATA
PyObject *py_ue_set_current_level(ue_PyUObject *self, PyObject * args)
{

Expand All @@ -321,6 +322,7 @@ PyObject *py_ue_set_current_level(ue_PyUObject *self, PyObject * args)

Py_RETURN_FALSE;
}
#endif

#if WITH_EDITOR
PyObject *py_ue_get_level_script_blueprint(ue_PyUObject *self, PyObject * args)
Expand Down

0 comments on commit d6cf725

Please sign in to comment.