Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <b.mont29@gmail.com>2019-12-02 20:09:47 +0300
committerBastien Montagne <b.mont29@gmail.com>2019-12-02 20:09:47 +0300
commitdf29e9c070a2fe00591747828498b671e8b2b4db (patch)
tree2ca45120e24550f19aab391e8070abb2c442a117 /release/scripts/modules/bpy_extras
parent6fd2e65295e8f48332ce58e779424dde2f030f7f (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')
-rw-r--r--release/scripts/modules/bpy_extras/io_utils.py2
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))