Skip to content

Commit

Permalink
Draft: Fixed spline bug in DXF importer
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jan 7, 2017
1 parent a0533b7 commit 5d2e834
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Draft/importDXF.py
Expand Up @@ -776,6 +776,8 @@ def drawSpline(spline,forceShape=False):
warn('polygon fallback on %s' %spline)
return drawSplineIterpolation(controlpoints,closed=closed,\
forceShape=forceShape,alwaysDiscretize=True)
if fitpoints and not(controlpoints):
return drawSplineIterpolation(fitpoints,closed=closed,forceShape=forceShape)
try:
bspline=Part.BSplineCurve()
bspline.buildFromPolesMultsKnots(poles=controlpoints,mults=multvector,\
Expand Down

0 comments on commit 5d2e834

Please sign in to comment.