Merge pull request #12292 from Roy-043/Draft-importDXF.py-make_bezcurve-args-should-be-lowercase

Draft: importDXF.py: make_bezcurve args should be lowercase
This commit is contained in:
Roy-043
2024-02-10 15:41:14 +01:00
committed by GitHub

View File

@@ -1408,7 +1408,7 @@ def drawSpline(spline, forceShape=False):
-------
Part::Part2DObject or Part::TopoShape ('Edge', 'Face')
The returned object is normally a `Draft BezCurve`
created with `Draft.make_bezcurve(controlpoints, Degree=degree)`,
created with `Draft.make_bezcurve(controlpoints, degree=degree)`,
if `forceShape` is `False` and there are no weights.
Otherwise it tries to return a `Part.Shape` of type `'Wire'`,
@@ -1530,7 +1530,7 @@ def drawSpline(spline, forceShape=False):
if not forceShape and weights is None:
points = controlpoints[:]
del points[degree+1::degree+1]
return Draft.make_bezcurve(points, Degree=degree)
return Draft.make_bezcurve(points, degree=degree)
else:
poles = controlpoints[:]
edges = []