Fix #1553. Bug where reloading an IFC file didn't refresh the ID map without needing to restart.

This commit is contained in:
Dion Moult
2021-07-07 09:55:33 +10:00
parent 4bc5a3ba46
commit a87637163a
+2 -4
View File
@@ -4,7 +4,7 @@ import json
import importlib
import ifcopenshell
import ifcopenshell.util.pset
from blenderbim.bim.handler import purge_module_data
import blenderbim.bim.handler
from blenderbim.bim.ifc import IfcStore
from bpy.types import PropertyGroup
from bpy.props import (
@@ -48,9 +48,7 @@ def updateDataDir(self, context):
def updateIfcFile(self, context):
if context.scene.BIMProperties.ifc_file:
IfcStore.file = None
IfcStore.schema = None
purge_module_data()
blenderbim.bim.handler.loadIfcStore(context.scene)
def getMaterialPsetNames(self, context):