Fix #1288 - error when importing consecutive files.

This commit is contained in:
Dion Moult
2021-02-03 17:30:19 +11:00
parent 2f2b4e7dc2
commit 9717d6b1eb
18 changed files with 115 additions and 1 deletions
@@ -12,6 +12,16 @@ class Data:
library_classifications = {}
library_references = {}
@classmethod
def purge(cls):
cls.is_loaded = False
cls.products = {}
cls.classifications = {}
cls.references = {}
cls.library_file = None
cls.library_classifications = {}
cls.library_references = {}
@classmethod
def load(cls, product_id=None):
cls._file = IfcStore.get_file()