Path.Area: fix default parameter initialization
This commit is contained in:
committed by
Yorik van Havre
parent
2d3f94590e
commit
a345669b38
@@ -46,6 +46,9 @@ static PyObject * areaSetParams(PyObject *, PyObject *args, PyObject *kwd) {
|
||||
|
||||
static char *kwlist[] = {PARAM_FIELD_STRINGS(NAME,AREA_PARAMS_STATIC_CONF),NULL};
|
||||
|
||||
if(args && PySequence_Size(args)>0)
|
||||
PyErr_SetString(PyExc_ValueError,"Non-keyword argument is not supported");
|
||||
|
||||
//Declare variables defined in the NAME field of the CONF parameter list
|
||||
PARAM_PY_DECLARE(PARAM_FNAME,AREA_PARAMS_STATIC_CONF);
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ class PathWorkbench (Workbench):
|
||||
|
||||
curveAccuracy = PathPreferences.defaultLibAreaCurveAccuracy()
|
||||
if curveAccuracy:
|
||||
Path.Area.setDefaultParams(curveAccuracy)
|
||||
Path.Area.setDefaultParams(Accuracy = curveAccuracy)
|
||||
|
||||
Log('Loading Path workbench... done\n')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user