Skip to content

Commit e9cd48c

Browse files
committed
Fix import bug getting geometry type of objects without a representation
E.g. an IfcGridAxis
1 parent e63f083 commit e9cd48c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ifcblenderexport/blenderbim/bim/import_ifc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1778,10 +1778,10 @@ def get_representation_cartesian_transformation(self, element):
17781778
return representation.Items[0].MappingTarget
17791779

17801780
def get_geometry_type(self, element):
1781+
tree = []
17811782
if hasattr(element, 'Representation'):
17821783
tree = self.file.traverse(element.Representation)
17831784
elif hasattr(element, 'RepresentationMaps'):
1784-
tree = []
17851785
for representation_map in element.RepresentationMaps:
17861786
tree.extend(self.file.traverse(representation_map))
17871787
representations = [e for e in tree if e.is_a('IfcRepresentation') \

0 commit comments

Comments
 (0)