+ make sure that Sketch.clear() doesn't allow any arguments
This commit is contained in:
@@ -141,8 +141,11 @@ PyObject* SketchPy::addConstraint(PyObject *args)
|
||||
|
||||
PyObject* SketchPy::clear(PyObject *args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ""))
|
||||
return 0;
|
||||
|
||||
getSketchPtr()->clear();
|
||||
|
||||
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user