Arch: Minor fix to IFC exporter

This commit is contained in:
Yorik van Havre
2023-05-16 15:25:53 +02:00
parent 260187f924
commit ec96c2c738

View File

@@ -543,7 +543,7 @@ class Component(ArchIFC.IfcProduct):
# the base is a Part Extrusion
elif obj.Base.isDerivedFrom("Part::Extrusion"):
if obj.Base.Base:
if obj.Base.Base and len(obj.Base.Base.Shape.Wires) == 1:
base,placement = self.rebase(obj.Base.Base.Shape)
extrusion = FreeCAD.Vector(obj.Base.Dir).normalize()
if extrusion.Length == 0: