From 89339f807f9ba79100b24a98741f782a4aaacfc6 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 12 Oct 2023 22:41:45 +1100 Subject: [PATCH] Accommodate bug in Revit where mapped representations were missing... well, a representation map. --- src/blenderbim/blenderbim/bim/import_ifc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/import_ifc.py b/src/blenderbim/blenderbim/bim/import_ifc.py index 6fc2c986c3..1c56c29581 100644 --- a/src/blenderbim/blenderbim/bim/import_ifc.py +++ b/src/blenderbim/blenderbim/bim/import_ifc.py @@ -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