Fix bug where transaction history was polluted when starting a new file in an existing Blender session

This commit is contained in:
Dion Moult
2022-06-09 15:30:18 +10:00
parent 95881c6258
commit b5e27e4ced
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -65,6 +65,9 @@ class IfcStore:
IfcStore.pset_template_file = None
IfcStore.library_path = ""
IfcStore.library_file = None
IfcStore.last_transaction = ""
IfcStore.history = []
IfcStore.future = []
IfcStore.schema_identifiers = ["IFC4", "IFC2X3"]
@staticmethod
@@ -314,6 +314,8 @@ class IfcImporter:
if self.ifc_import_settings.has_filter:
self.elements = self.ifc_import_settings.elements
if isinstance(self.elements, set):
self.elements = list(self.elements)
# TODO: enable filtering for annotations
self.annotations = set(self.file.by_type("IfcAnnotation"))
else: