From a1f82e443eea4838d7ae44e583743c901cd6a2d1 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Wed, 23 Dec 2015 12:13:29 -0200 Subject: [PATCH] Draft: small fix in Arch Axes SVG output --- src/Mod/Draft/Draft.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 49b32ce5e..39bfcc94d 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -2097,7 +2097,6 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct vobj = obj.ViewObject lorig = getLineStyle() fill = 'none' - invpl = obj.Placement.inverse() rad = vobj.BubbleSize.Value/2 n = 0 for e in obj.Shape.Edges: @@ -2112,11 +2111,11 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct pos = [vobj.BubblePosition] for p in pos: if p == "Start": - p1 = invpl.multVec(e.Vertexes[0].Point) - p2 = invpl.multVec(e.Vertexes[1].Point) + p1 = e.Vertexes[0].Point + p2 = e.Vertexes[1].Point else: - p1 = invpl.multVec(e.Vertexes[1].Point) - p2 = invpl.multVec(e.Vertexes[0].Point) + p1 = e.Vertexes[1].Point + p2 = e.Vertexes[0].Point dv = p2.sub(p1) dv.normalize() center = p2.add(dv.scale(rad,rad,rad))