diff --git a/src/Mod/Sketcher/App/SketchPyImp.cpp b/src/Mod/Sketcher/App/SketchPyImp.cpp index 3404a5dfb..39d72188a 100644 --- a/src/Mod/Sketcher/App/SketchPyImp.cpp +++ b/src/Mod/Sketcher/App/SketchPyImp.cpp @@ -141,11 +141,9 @@ PyObject* SketchPy::addConstraint(PyObject *args) PyObject* SketchPy::clear(PyObject *args) { - int index; - if (!PyArg_ParseTuple(args, "i", &index)) - return 0; - - return Py::new_reference_to(Py::Int(getSketchPtr()->addVerticalConstraint(index))); + getSketchPtr()->clear(); + + Py_RETURN_NONE; } PyObject* SketchPy::movePoint(PyObject *args)