diff --git a/src/App/ExtensionContainerPyImp.cpp b/src/App/ExtensionContainerPyImp.cpp index 233fec71f6..d218ae9af4 100644 --- a/src/App/ExtensionContainerPyImp.cpp +++ b/src/App/ExtensionContainerPyImp.cpp @@ -158,7 +158,7 @@ PyObject* ExtensionContainerPy::addExtension(PyObject *args) { str << "Accessing the proxy property failed!" << std::ends; throw Py::Exception(Base::BaseExceptionFreeCADError,str.str()); } - static_cast(pp)->setValue(Py::asObject(proxy)); + static_cast(pp)->setPyObject(proxy); //make sure all functions of the extension are acessible through this object PyMethodDef* tmpptr = (PyMethodDef*)ext->getExtensionPyObject()->ob_type->tp_methods;