Fix incorrect error message for bim.link_ifc when linking using 'files' argument

self.filepath is empty if bim.link_ifc was executed using 'files' argument
This commit is contained in:
Andrej730
2024-10-24 14:15:08 +05:00
parent 181b0cefc3
commit b08acd1625
@@ -1000,7 +1000,7 @@ class LinkIfc(bpy.types.Operator):
status = bpy.ops.bim.load_link(filepath=filepath.as_posix(), use_cache=self.use_cache)
if status == {"CANCELLED"}:
error_msg = (
f'Error processing IFC file "{self.filepath}" '
f'Error processing IFC file "{filepath.as_posix()}" '
"was critical and blend file either wasn't saved or wasn't updated. "
"See logs above in system console for details."
)