Arch: Fixed bug in extrusion of structures - fixes #2458
This commit is contained in:
parent
9e01a08eaf
commit
9bd89e7e29
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user