Fix a small problem with parameters

This is the same problem as in https://github.com/FreeCAD/FreeCAD/pull/10727.
Apparently it was also present in PolyAlgo.
This commit is contained in:
Pieter Hijma
2023-11-14 18:08:04 +01:00
parent f97906c4e3
commit bb77c0670a

View File

@@ -86,7 +86,7 @@ PyObject* HLRBRep_PolyAlgoPy::setProjector(PyObject *args, PyObject *kwds)
PyObject* xd = nullptr;
double focus = std::numeric_limits<double>::quiet_NaN();
static const std::array<const char *, 4> kwlist {"Origin", "ZDir", "XDir", nullptr};
static const std::array<const char *, 5> kwlist {"Origin", "ZDir", "XDir", "focus", nullptr};
if (Base::Wrapped_ParseTupleAndKeywords(args, kwds, "|O!O!O!d", kwlist,
&Base::VectorPy::Type, &ps,
&Base::VectorPy::Type, &zd,