Curves, if they are a swept disk solid, may belong to multiple items.

Not sure if this is the best approach. It'll probably bite me in the future.
This commit is contained in:
Dion Moult
2020-07-30 17:08:49 +10:00
parent a337c480a9
commit 8197621232
@@ -1852,6 +1852,8 @@ class IfcExporter():
for mapped_item in representation.Items:
items = mapped_item[0].MappedRepresentation.Items
for i, item in enumerate(items):
if i >= len(product['raw'].material_slots):
i = 0
material_slots[product['raw'].material_slots[i].name] = item
for styled_item_name, representation_item in material_slots.items():
if styled_item_name == styled_item['attributes']['Name']: