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>2019-04-28 20:33:35 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-04-28 20:33:35 +0300
commitf69b546d6fe884240be572ff1a4126a9e3c268eb (patch)
tree8ec3abdd689ef389873620d31875d7e2e1d1f456 /io_scene_gltf2/blender/imp/gltf2_blender_image.py
parent123c34d34ba3cd0d82ba4f7e2ddd059e044ca23b (diff)
glTF importer: fix bug in texture mapping when image is shared
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, 2 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_image.py b/io_scene_gltf2/blender/imp/gltf2_blender_image.py
index 6e0a9617..09fbf6b3 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_image.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_image.py
@@ -58,6 +58,8 @@ class BlenderImage():
if img.blender_image_name is not None:
# Image is already used somewhere
+ # We need to store index, for texture coord. mapping, if needed
+ bpy.data.images[img.blender_image_name]['tex_transform'][str(tex_index)] = tex_transform
return
if gltf.import_settings['import_pack_images'] is False: