mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Fix bug to prevent users from appending a project library asset twice
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user