Skip to content

Commit d9b8583

Browse files
author
Roberto De Ioris
committed
improved blueprint creation
1 parent df79ee9 commit d9b8583

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/UnrealEnginePython/Private/UEPyEditor.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,11 @@ PyObject *py_unreal_engine_create_blueprint(PyObject * self, PyObject * args)
12321232
if (!outer)
12331233
return PyErr_Format(PyExc_Exception, "unable to create package");
12341234

1235+
TArray<UPackage *> TopLevelPackages;
1236+
TopLevelPackages.Add(outer);
1237+
if (!PackageTools::HandleFullyLoadingPackages(TopLevelPackages, FText::FromString("Create a new object")))
1238+
return PyErr_Format(PyExc_Exception, "unable to fully load package");
1239+
12351240
if (FindObject<UBlueprint>(outer, UTF8_TO_TCHAR(bp_name)) != nullptr)
12361241
return PyErr_Format(PyExc_Exception, "there is already a Blueprint with this name");
12371242

0 commit comments

Comments
 (0)