From 934603b60422d34978d64091a0cd49578affce14 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Fri, 25 May 2018 18:48:04 -0300 Subject: [PATCH] Draft: Fixed draft2sketch not working with ellipses --- src/Mod/Draft/DraftGeomUtils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/DraftGeomUtils.py b/src/Mod/Draft/DraftGeomUtils.py index a687ccef05..cd285a199b 100755 --- a/src/Mod/Draft/DraftGeomUtils.py +++ b/src/Mod/Draft/DraftGeomUtils.py @@ -1110,11 +1110,11 @@ def getNormal(shape): if (shape.ShapeType == "Face") and hasattr(shape,"normalAt"): n = shape.copy().normalAt(0.5,0.5) elif shape.ShapeType == "Edge": - if geomType(shape.Edges[0]) == "Circle": + if geomType(shape.Edges[0]) in ["Circle","Ellipse"]: n = shape.Edges[0].Curve.Axis else: for e in shape.Edges: - if geomType(e) == "Circle": + if geomType(e) in ["Circle","Ellipse"]: n = e.Curve.Axis break e1 = vec(shape.Edges[0])