From df29e9c070a2fe00591747828498b671e8b2b4db Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 2 Dec 2019 18:09:47 +0100 Subject: [PATCH] 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... --- release/scripts/modules/bpy_extras/io_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))