forked from bartvdbraak/blender
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:
parent
6fd2e65295
commit
df29e9c070
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user