diff options
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_image.py')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_image.py | 2 |
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 4f9af799..abce0354 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_image.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_image.py @@ -83,7 +83,7 @@ def create_from_data(gltf, img_idx): img_data = BinaryData.get_image_data(gltf, img_idx) if img_data is None: return - img_name = 'Image_%d' % img_idx + img_name = gltf.data.images[img_idx].name or 'Image_%d' % img_idx # Create image, width and height are dummy values blender_image = bpy.data.images.new(img_name, 8, 8) |