From eedc96b9fd280afdf8d4fdce417e93d84516b062 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 2 Feb 2022 16:34:30 +0100 Subject: [PATCH] Fem: fix crash caused by PropertyPostDataObject::getPyObject() --- src/Mod/Fem/App/PropertyPostDataObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Fem/App/PropertyPostDataObject.cpp b/src/Mod/Fem/App/PropertyPostDataObject.cpp index 03daadb2ea..db6dbb803d 100644 --- a/src/Mod/Fem/App/PropertyPostDataObject.cpp +++ b/src/Mod/Fem/App/PropertyPostDataObject.cpp @@ -108,7 +108,7 @@ int PropertyPostDataObject::getDataType() { PyObject *PropertyPostDataObject::getPyObject(void) { //TODO: fetch the vtk python object from the data set and return it - return new PyObject(); + return Py::new_reference_to(Py::None()); } void PropertyPostDataObject::setPyObject(PyObject * /*value*/)