From 914759e9053aa87ea925a9e01b025479f781ce5a Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Thu, 8 Feb 2024 10:25:39 +0100 Subject: [PATCH] Draft: importDXF.py: make_bezcurve args should be lowercase See: https://github.com/FreeCAD/FreeCAD/issues/10985#issuecomment-1932797213 --- src/Mod/Draft/importDXF.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index 3c159f5335..f8eeedcc72 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -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 = []