mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 01:11:40 +00:00
Fix #1652. Minor fix.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user