fix bug in adding psets for materials

This commit is contained in:
Jesusbill
2021-05-30 13:32:59 +02:00
parent c7ba643ef7
commit 994ccb94f4
2 changed files with 5 additions and 4 deletions
@@ -59,8 +59,9 @@ class Data:
@classmethod
def add_pset(cls, pset, product_id):
data = pset.get_info()
del data["OwnerHistory"]
del data["HasProperties"]
if not pset.is_a("IfcMaterialProperties"):
del data["OwnerHistory"]
del data["HasProperties"]
if hasattr(pset, "HasProperties"):
props = pset.HasProperties or []
elif hasattr(pset, "Properties"):