diff options
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py index 71913034..cb4a03c6 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py @@ -81,6 +81,7 @@ def __gather_mime_type(sockets_or_slots, export_settings): if export_settings["gltf_image_format"] == "NAME": image_name = __get_texname_from_slot(sockets_or_slots, export_settings) _, extension = os.path.splitext(image_name) + extension = extension.lower() if extension in [".jpeg", ".jpg", ".png"]: return { ".jpeg": "image/jpeg", @@ -99,6 +100,7 @@ def __gather_name(sockets_or_slots, export_settings): image_name = __get_texname_from_slot(sockets_or_slots, export_settings) name, extension = os.path.splitext(image_name) + extension = extension.lower() if extension in [".jpeg", ".jpg", ".png"]: return name return image_name |