Use mimetype according to glTF spec.

(cherry picked from commit 9a50a4442d)
This commit is contained in:
Yaakuro 2018-05-10 23:21:05 +02:00 committed by Hein-Pieter van Braam
parent 7e09206e5c
commit 7f65584f28
1 changed files with 1 additions and 1 deletions

View File

@ -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<Image> img = Image::_jpg_mem_loader_func(data_ptr, data_size);