mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Fix bug where module data was not purged correctly when a new scene was started
This commit is contained in:
@@ -123,12 +123,12 @@ def purge_module_data():
|
|||||||
@persistent
|
@persistent
|
||||||
def loadIfcStore(scene):
|
def loadIfcStore(scene):
|
||||||
IfcStore.purge()
|
IfcStore.purge()
|
||||||
|
purge_module_data()
|
||||||
ifc_file = IfcStore.get_file()
|
ifc_file = IfcStore.get_file()
|
||||||
if not ifc_file:
|
if not ifc_file:
|
||||||
return
|
return
|
||||||
IfcStore.get_schema()
|
IfcStore.get_schema()
|
||||||
IfcStore.reload_linked_elements()
|
IfcStore.reload_linked_elements()
|
||||||
purge_module_data()
|
|
||||||
|
|
||||||
|
|
||||||
@persistent
|
@persistent
|
||||||
|
|||||||
Reference in New Issue
Block a user