From b08acd16254ed0ba087a9e36901a627864c1b7b2 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 24 Oct 2024 14:15:08 +0500 Subject: [PATCH] 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 --- src/bonsai/bonsai/bim/module/project/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/project/operator.py b/src/bonsai/bonsai/bim/module/project/operator.py index 92eecd61d5..1aac2b0231 100644 --- a/src/bonsai/bonsai/bim/module/project/operator.py +++ b/src/bonsai/bonsai/bim/module/project/operator.py @@ -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." )