diff --git a/src/App/DocumentPyImp.cpp b/src/App/DocumentPyImp.cpp index c24be3cc4..cc9c40e62 100644 --- a/src/App/DocumentPyImp.cpp +++ b/src/App/DocumentPyImp.cpp @@ -147,7 +147,7 @@ PyObject* DocumentPy::addObject(PyObject *args) pyvp.setAttr("__vobject__", pyftr.getAttr("ViewObject")); } pyftr.getAttr("ViewObject").setAttr("Proxy", pyvp); - return Py::new_reference_to(Py::None()); + return Py::new_reference_to(pyftr); } catch (Py::Exception& e) { e.clear();