From 5559b027074525993d4ca70725901ce38233e108 Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Tue, 17 Jan 2017 19:17:36 +0100 Subject: [PATCH] fixed factory-create_new --- Source/UnrealEnginePython/Private/UEPyEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/UnrealEnginePython/Private/UEPyEditor.cpp b/Source/UnrealEnginePython/Private/UEPyEditor.cpp index 868a5f89f..9977b0243 100644 --- a/Source/UnrealEnginePython/Private/UEPyEditor.cpp +++ b/Source/UnrealEnginePython/Private/UEPyEditor.cpp @@ -1105,7 +1105,7 @@ PyObject *py_ue_factory_create_new(ue_PyUObject *self, PyObject * args) { return PyErr_Format(PyExc_Exception, "unable to create package"); UFactory *factory = (UFactory *)self->ue_object; - UClass *u_class = self->ue_object->GetClass(); + UClass *u_class = factory->GetSupportedClass(); char *obj_name = strrchr(name, '/') + 1; if (strlen(obj_name) < 1) {