Skip to content

Commit 9877aba

Browse files
author
Roberto De Ioris
committed
can_modify() is available only for since 4.15
1 parent a6b0569 commit 9877aba

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎Source/UnrealEnginePython/Private/UEPyModule.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,9 @@ static PyMethodDef ue_PyUObject_methods[] = {
404404
{ "get_path_name", (PyCFunction)py_ue_get_path_name, METH_VARARGS, "" },
405405
{ "get_full_name", (PyCFunction)py_ue_get_full_name, METH_VARARGS, "" },
406406

407+
#if ENGINE_MINOR_VERSION >= 15
407408
{ "can_modify", (PyCFunction)py_ue_can_modify, METH_VARARGS, "" },
409+
#endif
408410

409411
{ "set_name", (PyCFunction)py_ue_set_name, METH_VARARGS, "" },
410412

‎Source/UnrealEnginePython/Private/UObject/UEPyObject.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ PyObject *py_ue_find_function(ue_PyUObject * self, PyObject * args) {
329329

330330
}
331331

332+
#if ENGINE_MINOR_VERSION >= 15
332333
PyObject *py_ue_can_modify(ue_PyUObject *self, PyObject * args) {
333334

334335
ue_py_check(self);
@@ -339,6 +340,7 @@ PyObject *py_ue_can_modify(ue_PyUObject *self, PyObject * args) {
339340

340341
Py_RETURN_FALSE;
341342
}
343+
#endif
342344

343345
PyObject *py_ue_set_name(ue_PyUObject *self, PyObject * args) {
344346

0 commit comments

Comments
 (0)