Path.Area: fix default parameter initialization

This commit is contained in:
Zheng, Lei
2018-11-06 17:13:18 +08:00
committed by Yorik van Havre
parent 2d3f94590e
commit a345669b38
2 changed files with 4 additions and 1 deletions

View File

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

View File

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