From 9cd2c750db60ed57760ca551aef7878e598bc971 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 8 May 2014 12:29:15 -0300 Subject: [PATCH] Draft: Fixed inverted arcs in DXF output - fixes #1513 --- src/Mod/Draft/importDXF.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index 2564ccaaa977..5fc7b4bcba56 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -1506,6 +1506,8 @@ def getArcData(edge): a2 = -DraftVecUtils.angle(ve2.sub(ce)) if round(a1,Draft.precision()) == round(a2,Draft.precision()): return None,None, None, None + if edge.Curve.Axis.z < 0.0: + ang1, ang2 = ang2, ang1 pseudoarc = Part.ArcOfCircle(edge.Curve,a1,a2).toShape() if round(pseudoarc.Length,Draft.precision()) != round(edge.Length,Draft.precision()): ang1, ang2 = ang2, ang1 @@ -1833,4 +1835,4 @@ def exportPage(page,filename): dxfGetColors = p.GetBool("dxfGetOriginalColors",False) dxfUseDraftLayers = p.GetBool("dxfUseDraftLayers",False) dxfBrightBackground = isBrightBackground() -dxfDefaultColor = getColor() \ No newline at end of file +dxfDefaultColor = getColor()