From 637442a64d84d0c6e2a2e78c689de36d11924fa3 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Tue, 17 Oct 2023 19:11:04 -0700 Subject: [PATCH] Fix #113866: Import FBX When Recursive File List When File Browser is set to Recursive lists, importing FBX will fail because both the filepath and file names contain the recursed path. Therefore combining the two results in an invalid path. Instead combine "directory" with file names. --- io_scene_fbx/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 72ae5c995..253949817 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -203,9 +203,8 @@ class ImportFBX(bpy.types.Operator, ImportHelper): if self.files: ret = {'CANCELLED'} - dirname = os.path.dirname(self.filepath) for file in self.files: - path = os.path.join(dirname, file.name) + path = os.path.join(self.directory, file.name) if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}: ret = {'FINISHED'} return ret -- 2.30.2