Skip to content

Commit c4d1cb5

Browse files
author
Roberto De Ioris
committed
improved post_edit_change_property()
1 parent 233be5b commit c4d1cb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/UnrealEnginePython/Private/UObject/UEPyObject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ PyObject *py_ue_post_edit_change_property(ue_PyUObject *self, PyObject * args)
338338
ue_py_check(self);
339339

340340
char *prop_name = nullptr;
341-
int change_type = 0;
341+
int change_type = (int)EPropertyChangeType::Unspecified;
342342

343-
if (!PyArg_ParseTuple(args, "si:post_edit_change_property", &prop_name, &change_type))
343+
if (!PyArg_ParseTuple(args, "s|i:post_edit_change_property", &prop_name, &change_type))
344344
{
345345
return nullptr;
346346
}

0 commit comments

Comments
 (0)