summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakuro <yaakuro@codeposer.net>2018-05-10 23:21:05 +0200
committerYaakuro <yaakuro@codeposer.net>2018-05-10 23:21:05 +0200
commit9a50a4442da3fa9fcdb798f017b396ce73dadf32 (patch)
tree4725e1f898af832f562b663b8641fdbc3ccfcbdd
parent1ec2fa42f83ec107d346e610496a547bde861725 (diff)
Use mimetype according to glTF spec.
-rw-r--r--editor/import/editor_scene_importer_gltf.cpp2
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 af79f9946a..f4be6e8d59 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);