Fix missing pset templates update when changing IFC filepath #6979

E.g. when user opened .blend file and ifc filepath was pointing to a wrong destination, after they changed the filepath pset templates wouldn't reload.
This commit is contained in:
Andrej730
2025-08-06 14:43:52 +05:00
parent 2154200697
commit 6757026e3e
3 changed files with 9 additions and 2 deletions
+2
View File
@@ -112,6 +112,7 @@ class IfcStore:
if IfcStore.path:
try:
IfcStore.load_file(IfcStore.path)
tool.Ifc.after_file_loaded()
except Exception as e:
print(f"Failed to load file {IfcStore.path}. Error details: {e}")
return IfcStore.file
@@ -201,6 +202,7 @@ class IfcStore:
IfcStore.file = ifcopenshell.open(path, should_stream=True)
else:
IfcStore.file = ifcopenshell.open(path)
tool.Ifc.after_file_loaded()
@staticmethod
def get_schema() -> ifcopenshell.ifcopenshell_wrapper.schema_definition: