mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 11:20:21 +00:00
fix bug in adding psets for materials
This commit is contained in:
@@ -43,8 +43,8 @@ class Usecase:
|
||||
self.settings["product"].HasPropertySets = has_property_sets
|
||||
return pset
|
||||
elif self.settings["product"].is_a("IfcMaterialDefinition"):
|
||||
for definition in self.settings["product"].HasPropertySets or []:
|
||||
if definition.Name == self.settings["name"]:
|
||||
for definition in self.settings["product"].HasProperties or []:
|
||||
if definition.Name == self.settings["Name"]:
|
||||
return definition
|
||||
|
||||
return self.file.create_entity(
|
||||
|
||||
Reference in New Issue
Block a user