Part: expose ShapeFix_Shape to Python

This commit is contained in:
wmayer
2022-05-04 14:09:03 +02:00
parent 94f6279a67
commit 87db9dccb5
13 changed files with 443 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ std::string ShapeFix_RootPy::representation() const
PyObject *ShapeFix_RootPy::PyMake(struct _typeobject *, PyObject *, PyObject *) // Python wrapper
{
// create a new instance of ShapeFix_RootPy
return new ShapeFix_RootPy(new ShapeFix_Root);
return new ShapeFix_RootPy(nullptr);
}
// constructor method
@@ -50,6 +50,7 @@ int ShapeFix_RootPy::PyInit(PyObject* args, PyObject* /*kwds*/)
if (!PyArg_ParseTuple(args, ""))
return -1;
setHandle(new ShapeFix_Root);
return 0;
}