Fix #1289. Users can now reassign the IFC file location if it moves.

This commit is contained in:
Dion Moult
2021-02-03 19:15:25 +11:00
parent 9717d6b1eb
commit 4b9520a1bb
2 changed files with 14 additions and 6 deletions
+4 -1
View File
@@ -16,7 +16,10 @@ class IfcStore:
if IfcStore.file is None:
IfcStore.path = bpy.context.scene.BIMProperties.ifc_file
if IfcStore.path:
IfcStore.file = ifcopenshell.open(IfcStore.path)
try:
IfcStore.file = ifcopenshell.open(IfcStore.path)
except:
IfcStore.file
return IfcStore.file
@staticmethod