mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 00:23:14 +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:
|
for element in elements:
|
||||||
obj = IfcStore.get_element(element.GlobalId)
|
obj = IfcStore.get_element(element.GlobalId)
|
||||||
if not obj:
|
if not obj or not obj.data:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
element_material = ifcopenshell.util.element.get_material(element)
|
element_material = ifcopenshell.util.element.get_material(element)
|
||||||
|
|||||||
Reference in New Issue
Block a user