From cd5783ac2e3fdd3e0ec8f5a03aa4df1e98364e13 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 12 Feb 2015 11:57:39 -0200 Subject: [PATCH] Draft: fixed importSVG - fixes #1964 --- src/Mod/Draft/Draft.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 800af91db1..68cb51645b 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -1799,7 +1799,10 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct if rot < -90: rot += 180 #be carefull with the sweep flag - drawing_plane_normal = FreeCAD.DraftWorkingPlane.axis + if hasattr(FreeCAD,"DraftWorkingPlane"): + drawing_plane_normal = FreeCAD.DraftWorkingPlane.axis + else: + drawing_plane_normal = FreeCAD.Vector(0,0,1) if plane: drawing_plane_normal = plane.axis flag_large_arc = (((e.ParameterRange[1] - \ e.ParameterRange[0]) / math.pi) % 2) > 1