| 741 | } |
| 742 | |
| 743 | PyObject *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 |
| 761 | PyObject *py_ue_save_package(ue_PyUObject * self, PyObject * args) { |
nothing calls this directly
no test coverage detected