Merge pull request #18775 from yaakuro/master-gltf-image-fix

Use mimeType according to glTF spec.
This commit is contained in:
Rémi Verschelde 2018-05-11 08:13:28 +02:00 committed by GitHub
commit b38905ae98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);