Skip to content

Commit

Permalink
Draft: Import DXF: handle arc angles larger than 360 degrees
Browse files Browse the repository at this point in the history
See #10985.
  • Loading branch information
Roy-043 committed Oct 19, 2023
1 parent 885343c commit d0f3d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Draft/importDXF.py
Expand Up @@ -995,8 +995,8 @@ def drawArc(arc, forceShape=False):
"""
pl = placementFromDXFOCS(arc)
rad = vec(arc.radius)
firstangle = round(arc.start_angle, prec())
lastangle = round(arc.end_angle, prec())
firstangle = round(arc.start_angle%360, prec())
lastangle = round(arc.end_angle%360, prec())
try:
if (dxfCreateDraft or dxfCreateSketch) and (not forceShape):
return Draft.make_circle(rad, pl, face=False,
Expand Down

0 comments on commit d0f3d63

Please sign in to comment.