Fix bug to prevent users from appending a project library asset twice

This commit is contained in:
Dion Moult
2021-08-07 18:37:45 +10:00
parent bcf82984ce
commit 176e22af8b
3 changed files with 4 additions and 2 deletions
@@ -11,7 +11,7 @@ class Usecase:
def execute(self):
self.added_elements = set()
if self.settings["element"].is_a("IfcTypeProduct"):
if self.settings["element"].is_a("IfcTypeProduct") and not self.file.by_guid(self.settings["element"].GlobalId):
return self.append_type_product()
def append_type_product(self):