diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-01-23 23:08:22 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-01-23 23:08:49 +0300 |
commit | acf3bcb5b5c763edb83f511ecf7873a04ae23f96 (patch) | |
tree | 06e50fb7201d169cc313f7bf9fe02b98d9dad06e /io_scene_gltf2/io/imp/gltf2_io_binary.py | |
parent | 49c1b409286937d00a63fbf4cfb1f820a75a80c0 (diff) |
glTF importer: fix bug when texture file is not found
Diffstat (limited to 'io_scene_gltf2/io/imp/gltf2_io_binary.py')
-rwxr-xr-x | io_scene_gltf2/io/imp/gltf2_io_binary.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/io/imp/gltf2_io_binary.py b/io_scene_gltf2/io/imp/gltf2_io_binary.py index 9bf04fa5..7a5dd13d 100755 --- a/io_scene_gltf2/io/imp/gltf2_io_binary.py +++ b/io_scene_gltf2/io/imp/gltf2_io_binary.py @@ -163,7 +163,7 @@ class BinaryData(): with open(join(dirname(gltf.filename), pyimage.uri), 'rb') as f_: return f_.read(), basename(join(dirname(gltf.filename), pyimage.uri)) else: - pyimage.gltf.log.error("Missing file (index " + str(img_idx) + "): " + pyimage.uri) + gltf.log.error("Missing file (index " + str(img_idx) + "): " + pyimage.uri) return None, None if pyimage.buffer_view is None: |