Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part.BSplineSurface.buildFromPolesMultsKnots(): Fix 'Truth value of a…
…n array ... use a.any() or a.all()' when explicit knots or weights provided Calls to BSplineSurface.buildFromPolesMultsKnots() with explicit knots or weights fail in recent versions of FreeCAD (tested on 0.18.3 with python3) with the message 'The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()'. This trivial change follows the pattern used later in the function of explicit comparisons with Py_None, replacing PyObject_Not() and PyObject_IsTrue() when they are used to determine whether explicit weights or knots have been provided.
- Loading branch information