diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2019-12-02 20:09:47 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2019-12-02 20:09:47 +0300 |
commit | df29e9c070a2fe00591747828498b671e8b2b4db (patch) | |
tree | 2ca45120e24550f19aab391e8070abb2c442a117 /release/scripts/modules/bpy_extras/io_utils.py | |
parent | 6fd2e65295e8f48332ce58e779424dde2f030f7f (diff) |
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...
Diffstat (limited to 'release/scripts/modules/bpy_extras/io_utils.py')
-rw-r--r-- | release/scripts/modules/bpy_extras/io_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy_extras/io_utils.py b/release/scripts/modules/bpy_extras/io_utils.py index 380b63066ef..19697b25f70 100644 --- a/release/scripts/modules/bpy_extras/io_utils.py +++ b/release/scripts/modules/bpy_extras/io_utils.py @@ -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)) |