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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2020-03-11 08:46:55 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-03-11 08:46:55 +0300
commit520b6af2be38066566ae52781de14e510a0ee987 (patch)
treea6fd124c344ce64dce9c7886129daba43155f616 /io_scene_gltf2/blender/imp/gltf2_blender_image.py
parente4269fc795cfbadf058a6315474cfc1443091922 (diff)
glTF importer: fix bug on windows, use absolute path
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_image.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_image.py b/io_scene_gltf2/blender/imp/gltf2_blender_image.py
index 0075b7f4..92eed8d4 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_image.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_image.py
@@ -58,7 +58,7 @@ class BlenderImage():
path = tmp_file.name
num_images = len(bpy.data.images)
- blender_image = bpy.data.images.load(path, check_existing=img_from_file)
+ blender_image = bpy.data.images.load(os.path.abspath(path), check_existing=img_from_file)
if len(bpy.data.images) != num_images: # If created a new image
blender_image.name = img_name
if gltf.import_settings['import_pack_images'] or not img_from_file: