mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
Fix bug where transaction history was polluted when starting a new file in an existing Blender session
This commit is contained in:
@@ -65,6 +65,9 @@ class IfcStore:
|
|||||||
IfcStore.pset_template_file = None
|
IfcStore.pset_template_file = None
|
||||||
IfcStore.library_path = ""
|
IfcStore.library_path = ""
|
||||||
IfcStore.library_file = None
|
IfcStore.library_file = None
|
||||||
|
IfcStore.last_transaction = ""
|
||||||
|
IfcStore.history = []
|
||||||
|
IfcStore.future = []
|
||||||
IfcStore.schema_identifiers = ["IFC4", "IFC2X3"]
|
IfcStore.schema_identifiers = ["IFC4", "IFC2X3"]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@@ -314,6 +314,8 @@ class IfcImporter:
|
|||||||
|
|
||||||
if self.ifc_import_settings.has_filter:
|
if self.ifc_import_settings.has_filter:
|
||||||
self.elements = self.ifc_import_settings.elements
|
self.elements = self.ifc_import_settings.elements
|
||||||
|
if isinstance(self.elements, set):
|
||||||
|
self.elements = list(self.elements)
|
||||||
# TODO: enable filtering for annotations
|
# TODO: enable filtering for annotations
|
||||||
self.annotations = set(self.file.by_type("IfcAnnotation"))
|
self.annotations = set(self.file.by_type("IfcAnnotation"))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user