mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Fix bug where psets didn't show up for non element types like 2X3 door styles.
This commit is contained in:
@@ -22,7 +22,7 @@ class Data:
|
|||||||
return
|
return
|
||||||
product = file.by_id(product_id)
|
product = file.by_id(product_id)
|
||||||
cls.products[product_id] = {"psets": set(), "qtos": set()}
|
cls.products[product_id] = {"psets": set(), "qtos": set()}
|
||||||
if product.is_a("IfcElementType"):
|
if product.is_a("IfcTypeObject"):
|
||||||
cls.add_type_product_psets(product, product_id)
|
cls.add_type_product_psets(product, product_id)
|
||||||
elif product.is_a("IfcMaterialDefinition"):
|
elif product.is_a("IfcMaterialDefinition"):
|
||||||
cls.add_material_psets(product, product_id)
|
cls.add_material_psets(product, product_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user