mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 21:38:12 +00:00
Fix #1553. Bug where reloading an IFC file didn't refresh the ID map without needing to restart.
This commit is contained in:
@@ -4,7 +4,7 @@ import json
|
|||||||
import importlib
|
import importlib
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.util.pset
|
import ifcopenshell.util.pset
|
||||||
from blenderbim.bim.handler import purge_module_data
|
import blenderbim.bim.handler
|
||||||
from blenderbim.bim.ifc import IfcStore
|
from blenderbim.bim.ifc import IfcStore
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
@@ -48,9 +48,7 @@ def updateDataDir(self, context):
|
|||||||
|
|
||||||
def updateIfcFile(self, context):
|
def updateIfcFile(self, context):
|
||||||
if context.scene.BIMProperties.ifc_file:
|
if context.scene.BIMProperties.ifc_file:
|
||||||
IfcStore.file = None
|
blenderbim.bim.handler.loadIfcStore(context.scene)
|
||||||
IfcStore.schema = None
|
|
||||||
purge_module_data()
|
|
||||||
|
|
||||||
|
|
||||||
def getMaterialPsetNames(self, context):
|
def getMaterialPsetNames(self, context):
|
||||||
|
|||||||
Reference in New Issue
Block a user