Skip to content

Commit 5559b02

Browse files
author
Roberto De Ioris
committed
fixed factory-create_new
1 parent 18cae72 commit 5559b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/UnrealEnginePython/Private/UEPyEditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ PyObject *py_ue_factory_create_new(ue_PyUObject *self, PyObject * args) {
11051105
return PyErr_Format(PyExc_Exception, "unable to create package");
11061106

11071107
UFactory *factory = (UFactory *)self->ue_object;
1108-
UClass *u_class = self->ue_object->GetClass();
1108+
UClass *u_class = factory->GetSupportedClass();
11091109

11101110
char *obj_name = strrchr(name, '/') + 1;
11111111
if (strlen(obj_name) < 1) {

0 commit comments

Comments
 (0)