Skip to content

Commit

Permalink
bugfix in dxf output of arc
Browse files Browse the repository at this point in the history
regression created by 099ece5
  • Loading branch information
5263 authored and yorikvanhavre committed Jan 10, 2015
1 parent 9ce08e7 commit ff8ad03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Draft/importDXF.py
Expand Up @@ -1357,6 +1357,9 @@ def getArcData(edge):
ang1,ang2=edge.ParameterRange
else:
ang2,ang1=edge.ParameterRange
if edge.Curve.XAxis != FreeCAD.Vector(1,0,0):
ang1 -= DraftVecUtils.angle(edge.Curve.XAxis)
ang2 -= DraftVecUtils.angle(edge.Curve.XAxis)
return DraftVecUtils.tup(ce), radius, math.degrees(ang1),\
math.degrees(ang2)

Expand Down

0 comments on commit ff8ad03

Please sign in to comment.