Arch: Fixed bug in extrusion of structures - fixes #2458

This commit is contained in:
Yorik van Havre 2016-02-28 14:03:29 -03:00
parent 9e01a08eaf
commit 9bd89e7e29

View File

@ -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: