Accommodate bug in Revit where mapped representations were missing... well, a representation map.

This commit is contained in:
Dion Moult
2023-10-12 22:41:45 +11:00
parent 1237d82d13
commit 89339f807f
+3 -1
View File
@@ -96,7 +96,9 @@ class MaterialCreator:
has_parsed = True
elif hasattr(element, "RepresentationMaps"):
for representation_map in element.RepresentationMaps:
if self.parse_representation(representation_map.MappedRepresentation):
if not representation_map.MappedRepresentation:
has_parsed = True # Accommodate invalid IFC data from Revit
elif self.parse_representation(representation_map.MappedRepresentation):
has_parsed = True
return has_parsed