Fix #113866: Import FBX When Recursive File List #104963

Open
Harley Acheson wants to merge 1 commits from Harley/blender-addons:RecursiveFBX into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

View File

@ -203,9 +203,8 @@ class ImportFBX(bpy.types.Operator, ImportHelper):
if self.files: if self.files:
ret = {'CANCELLED'} ret = {'CANCELLED'}
dirname = os.path.dirname(self.filepath)
for file in self.files: 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'}: if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
ret = {'FINISHED'} ret = {'FINISHED'}
return ret return ret