MCPcopy Create free account
hub / github.com/20tab/UnrealEnginePython / py_ue_get_cdo

Function py_ue_get_cdo

Source/UnrealEnginePython/Private/UEPyObject.cpp:743–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743PyObject *py_ue_get_cdo(ue_PyUObject * self, PyObject * args) {
744
745 ue_py_check(self);
746
747 if (!self->ue_object->IsA<UClass>()) {
748 return PyErr_Format(PyExc_Exception, "uobject is not a UClass");
749 }
750
751 UClass *u_class = (UClass *)self->ue_object;
752
753 ue_PyUObject *ret = ue_get_python_wrapper(u_class->GetDefaultObject());
754 if (!ret)
755 return PyErr_Format(PyExc_Exception, "uobject is in invalid state");
756 Py_INCREF(ret);
757 return (PyObject *)ret;
758}
759
760#if WITH_EDITOR
761PyObject *py_ue_save_package(ue_PyUObject * self, PyObject * args) {

Callers

nothing calls this directly

Calls 1

ue_get_python_wrapperFunction · 0.85

Tested by

no test coverage detected