Fix error after 5e93097

This commit is contained in:
Andrej730
2025-01-22 16:53:58 +05:00
parent 605a29786c
commit 083aa4da85
+1 -1
View File
@@ -62,7 +62,7 @@ def get_library_file(self: "BIMProjectProperties", context: bpy.types.Context) -
def update_library_file(self: "BIMProjectProperties", context: bpy.types.Context) -> None:
if self.library_file != "0":
filepath = next(p for p in tool.Blender.get_data_dir_paths("libraries", "*.ifc") if p.name == self.library_file)
bpy.ops.bim.select_library_file(filepath=filepath)
bpy.ops.bim.select_library_file(filepath=filepath.__str__())
def update_filter_mode(self: "BIMProjectProperties", context: bpy.types.Context) -> None: