diff options
| author | Yaakuro | 2018-05-10 23:21:05 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-05-13 21:48:37 +0200 |
| commit | 7f65584f28969362f90d3cc0dd5c10850fac7abf (patch) | |
| tree | 155540bdee31212928b968e1234484b2c551a62d | |
| parent | 7e09206e5cf329ba4b12f8fa8ca36ede6d9e1b48 (diff) | |
| download | godot-7f65584f28969362f90d3cc0dd5c10850fac7abf.tar.gz godot-7f65584f28969362f90d3cc0dd5c10850fac7abf.tar.zst godot-7f65584f28969362f90d3cc0dd5c10850fac7abf.zip | |
Use mimetype according to glTF spec.
(cherry picked from commit 9a50a4442da3fa9fcdb798f017b396ce73dadf32)
| -rw-r--r-- | editor/import/editor_scene_importer_gltf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/editor_scene_importer_gltf.cpp b/editor/import/editor_scene_importer_gltf.cpp index af79f9946..f4be6e8d5 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<Image> img = Image::_jpg_mem_loader_func(data_ptr, data_size); |
