From 7f65584f28969362f90d3cc0dd5c10850fac7abf Mon Sep 17 00:00:00 2001 From: Yaakuro Date: Thu, 10 May 2018 23:21:05 +0200 Subject: [PATCH] Use mimetype according to glTF spec. (cherry picked from commit 9a50a4442da3fa9fcdb798f017b396ce73dadf32) --- editor/import/editor_scene_importer_gltf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/import/editor_scene_importer_gltf.cpp b/editor/import/editor_scene_importer_gltf.cpp index af79f9946a1..f4be6e8d59f 100644 --- a/editor/import/editor_scene_importer_gltf.cpp +++ b/editor/import/editor_scene_importer_gltf.cpp @@ -1163,7 +1163,7 @@ Error EditorSceneImporterGLTF::_parse_images(GLTFState &state, const String &p_b continue; } - if (mimetype.findn("jpg") != -1) { + if (mimetype.findn("jpeg") != -1) { //is a jpg Ref img = Image::_jpg_mem_loader_func(data_ptr, data_size);