mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 12:32:39 +00:00
Fix bug for exporting slots with no materials
This commit is contained in:
@@ -478,7 +478,7 @@ class IfcParser():
|
|||||||
obj[key], []).append(product)
|
obj[key], []).append(product)
|
||||||
|
|
||||||
for slot in obj.material_slots:
|
for slot in obj.material_slots:
|
||||||
if slot.link == 'OBJECT':
|
if slot.material is None or slot.link == 'OBJECT':
|
||||||
continue
|
continue
|
||||||
if obj.BIMObjectProperties.material_type == 'IfcMaterialLayerSet':
|
if obj.BIMObjectProperties.material_type == 'IfcMaterialLayerSet':
|
||||||
self.rel_associates_material_layer_set.setdefault(self.product_index, []).append(
|
self.rel_associates_material_layer_set.setdefault(self.product_index, []).append(
|
||||||
|
|||||||
Reference in New Issue
Block a user