Skip to content

Commit

Permalink
parse keyword arguments in Part::TopoShapePy::makeOffsetShape
Browse files Browse the repository at this point in the history
  • Loading branch information
5263 authored and wwmayer committed Mar 2, 2014
1 parent c50b290 commit fe0180d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Part/App/TopoShapePy.xml
Expand Up @@ -228,7 +228,7 @@ which are to be removed. The remaining faces of the solid become the walls of
the hollowed solid, their thickness defined at the time of construction.</UserDocu>
</Documentation>
</Methode>
<Methode Name="makeOffsetShape" Const="true">
<Methode Name="makeOffsetShape" Const="true" Keyword="true">
<Documentation>
<UserDocu>Offset a given shape</UserDocu>
</Documentation>
Expand Down
5 changes: 3 additions & 2 deletions src/Mod/Part/App/TopoShapePyImp.cpp
Expand Up @@ -1059,14 +1059,15 @@ PyObject* TopoShapePy::makeThickness(PyObject *args)
}
}

PyObject* TopoShapePy::makeOffsetShape(PyObject *args)
PyObject* TopoShapePy::makeOffsetShape(PyObject *args, PyObject *keywds)
{
static char *kwlist[] = {"offset", "tolerance", "inter", "self_inter", "offsetMode", "join", "fill", NULL};
double offset, tolerance;
PyObject* inter = Py_False;
PyObject* self_inter = Py_False;
PyObject* fill = Py_False;
short offsetMode = 0, join = 0;
if (!PyArg_ParseTuple(args, "dd|O!O!hhO!",
if (!PyArg_ParseTupleAndKeywords(args, keywds, "dd|O!O!hhO!", kwlist,
&offset, &tolerance,
&(PyBool_Type), &inter,
&(PyBool_Type), &self_inter,
Expand Down

0 comments on commit fe0180d

Please sign in to comment.