diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-04-14 09:39:45 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-04-14 09:39:45 +0300 |
commit | 30981df003d2ca46d93692270cdbcc00addbf02f (patch) | |
tree | 57738096195df48472b6cb95af8315c777b33217 /io_scene_gltf2/blender | |
parent | 76ca00772a56a9779fffb1f2676eeb933c863973 (diff) |
glTF exporter: fix texture image export when extension is uppercase
Diffstat (limited to 'io_scene_gltf2/blender')
-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 |