Draft: Import DXF: handle arc angles larger than 360 degrees

See #10985.
This commit is contained in:
Roy-043
2023-10-19 18:01:22 +02:00
parent 885343c435
commit d0f3d63ef8
+2 -2
View File
@@ -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,