From 9bd89e7e290b0bceb20da91290e586ea91b9b2f3 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 28 Feb 2016 14:03:29 -0300 Subject: [PATCH] Arch: Fixed bug in extrusion of structures - fixes #2458 --- src/Mod/Arch/ArchStructure.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchStructure.py b/src/Mod/Arch/ArchStructure.py index a3bd53958..89cc20f3a 100644 --- a/src/Mod/Arch/ArchStructure.py +++ b/src/Mod/Arch/ArchStructure.py @@ -380,7 +380,9 @@ class _Structure(ArchComponent.Component): if len(obj.Base.Shape.Faces) > 0 : normal=obj.Base.Shape.Faces[0].normalAt(.5,.5) else: - return + normal = DraftGeomUtils.getNormal(obj.Base.Shape) + if not normal: + normal = FreeCAD.Vector(0,0,1) #p = FreeCAD.Placement(obj.Base.Placement) #normal = p.Rotation.multVec(normal) else: