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-01-24 18:56:37 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-01-24 18:56:37 +0300
commit2f208187759ff860d326d0da464dac8336f6c5b9 (patch)
tree935e264febaf0327f8b69682a9b41210862b64ed /io_scene_gltf2/blender/imp/gltf2_blender_image.py
parent0ef0b20339cf95d4872e1cdcee36532f49c97dfb (diff)
glTF importer: fix importing with missing texture
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 c64fa5a0..68ac1338 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_image.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_image.py
@@ -92,7 +92,7 @@ class BlenderImage():
# Create a temp image, pack, and delete image
tmp_image = tempfile.NamedTemporaryFile(delete=False)
img_data, img_name = BinaryData.get_image_data(gltf, img_idx)
- if img_name is not None:
+ if img_data is not None:
tmp_image.write(img_data)
tmp_image.close()