Fix #1652. Minor fix.

This commit is contained in:
Dion Moult
2021-08-15 10:24:39 +10:00
parent ca20d94d66
commit 91d1f69d58
@@ -258,7 +258,7 @@ def ensure_material_assigned(usecase_path, ifc_file, settings):
for element in elements:
obj = IfcStore.get_element(element.GlobalId)
if not obj:
if not obj or not obj.data:
continue
element_material = ifcopenshell.util.element.get_material(element)