Fix bug where you could not add properties to projects themselves.

This commit is contained in:
Dion Moult
2022-01-21 12:01:19 +11:00
parent 67952ed159
commit 5709efbdcb
2 changed files with 61 additions and 1 deletions
@@ -27,7 +27,7 @@ class Usecase:
self.settings[key] = value
def execute(self):
if self.settings["product"].is_a("IfcObject"):
if self.settings["product"].is_a("IfcObject") or self.settings["product"].is_a("IfcContext"):
for rel in self.settings["product"].IsDefinedBy or []:
if (
rel.is_a("IfcRelDefinesByProperties")