Fix T71596: Bug in io_utils api breaking only on windows.

Stupid mistake, 'original' filepath is a blender-flavored one, with
potentially weird things like the '//' relative 'header'... This can
work on linux (also it could have broken in other places too), but on
windows that is fully invalid path and python `os.path` library just
generates empty result here.

Simply using proper valid path instead fixes it...
This commit is contained in:
Bastien Montagne 2019-12-02 18:09:47 +01:00
parent 6fd2e65295
commit df29e9c070
Notes: blender-bot 2023-02-14 19:05:32 +01:00
Referenced by issue blender/blender-addons#71596, Fbx export writes the embedded textures paths with a .fbm extension after playing with 'pack/unpack textures into blend files'
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ def path_reference(
if copy_subdir:
subdir_abs = os.path.join(subdir_abs, copy_subdir)
filepath_cpy = os.path.join(subdir_abs, os.path.basename(filepath))
filepath_cpy = os.path.join(subdir_abs, os.path.basename(filepath_abs))
copy_set.add((filepath_abs, filepath_cpy))