Fix bug where appending a product from a library which had relationships to types caused a bunch of types to be pulled in unintentionally

This commit is contained in:
Dion Moult
2023-03-24 20:53:55 +11:00
parent f3f90e0ad5
commit 346071185f
2 changed files with 15 additions and 0 deletions
@@ -258,6 +258,8 @@ class Usecase:
return False
elif element.is_a(self.target_class):
return True
elif self.target_class == "IfcProduct" and element.is_a("IfcTypeProduct"):
return True
return False
def reuse_existing_contexts(self):