Browse Source

Use mimetype according to glTF spec.

Yaakuro 7 years ago
parent
commit
9a50a4442d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/import/editor_scene_importer_gltf.cpp

+ 1 - 1
editor/import/editor_scene_importer_gltf.cpp

@@ -1163,7 +1163,7 @@ Error EditorSceneImporterGLTF::_parse_images(GLTFState &state, const String &p_b
 			continue;
 			continue;
 		}
 		}
 
 
-		if (mimetype.findn("jpg") != -1) {
+		if (mimetype.findn("jpeg") != -1) {
 			//is a jpg
 			//is a jpg
 			Ref<Image> img = Image::_jpg_mem_loader_func(data_ptr, data_size);
 			Ref<Image> img = Image::_jpg_mem_loader_func(data_ptr, data_size);