Sketcher Bug fix: Python function clear() contains wrong code

=============================================================

This function is like this from 2011 according to git blame.

The original code makes no sense. I assume that what is intended in this
function (in accordance with SketchPy.xml) is call the method clear in
Sketch.cpp.
This commit is contained in:
Abdullah Tahiri 2015-05-21 15:30:31 +02:00 committed by wmayer
parent b882109cb1
commit b5ff8cdc82

View File

@ -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)