Arch: Enabled ellipse-based walls - fixes #3859

This commit is contained in:
Yorik van Havre
2020-10-20 13:13:54 +02:00
parent 0b89de1911
commit eacf3a6b98
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)