Skip to content

Commit

Permalink
Fix accessing image index
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed Sep 23, 2018
1 parent 72e464e commit 8af17a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/io_scene_gltf2/io/imp/gltf2_io_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def get_image_data(gltf, img_idx):
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(pyimage.index) + "): " + pyimage.uri)
pyimage.gltf.log.error("Missing file (index " + str(img_idx) + "): " + pyimage.uri)
return None, None

if pyimage.buffer_view is None:
Expand Down

0 comments on commit 8af17a5

Please sign in to comment.