Arch: Enabled ellipse-based walls - fixes #3859

This commit is contained in:
Yorik van Havre
2020-10-20 13:13:54 +02:00
parent eee68a314b
commit 87eae7c58c
2 changed files with 11 additions and 3 deletions

View File

@@ -1330,7 +1330,7 @@ class _Wall(ArchComponent.Component):
# normal of the face/sketch and the direction the
# wire was drawn in. IE: along the width direction
# of the wall.
if isinstance(e.Curve,Part.Circle):
if isinstance(e.Curve,(Part.Circle,Part.Ellipse)):
dvec = e.Vertexes[0].Point.sub(e.Curve.Center)
else:
dvec = DraftGeomUtils.vec(e).cross(normal)