### Godot version

0810ecaafdbee3ea747219e6ab3a8de5d2216a09

### System information

Windows 11, Nvidia 3000, firefox

### Issue description

Exporting the gltf file is corrupt in blender.

### Steps to reproduce

1. Open project.
2. Export as glb
3. Open in blender
4. Blender display many warnings

![image](https://user-images.githubusercontent.com/32321/216740742-de662c5c-f5c3-44b5-a36e-8ad33defdbba.png)


### Minimal reproduction project

https://cdn.discordapp.com/attachments/598003845657788438/1071249610896580691/Test_Game_Project.zip


if (config->has_section_key("remap", "generator_parameters")) {
						generator_parameters = (Dictionary)config->get_value("remap", "generator_parameters");
					}
					if (!generator_parameters.has("md5")) {
						must_import = false; 
					}
					String existing_md5 = generator_parameters["md5"];
					unsigned char md5_hash[16];
					CryptoCore::md5(img_data.ptr(), img_data.size(), md5_hash);
					String new_md5 = String::hex_encode_buffer(md5_hash, 16);
					generator_parameters["md5"] = new_md5;
					if (new_md5 == existing_md5) {
						must_import = false;
					}
				}
				if (must_import) {
					err = img->save_png(file_path);
					ERR_FAIL_COND_V(err != OK, err);
					
					HashMap<StringName, Variant> custom_options;
					custom_options[SNAME("mipmaps/generate")] = true;
					
					EditorFileSystem::get_singleton()->update_file(file_path);
					EditorFileSystem::get_singleton()->reimport_append(file_path, custom_options, String(), generator_parameters);
				}
				Ref<Texture2D> saved_image = ResourceLoader::load(file_path, "Texture2D");
				if (saved_image.is_valid()) {
					p_state->images.push_back(saved_image);
					p_state->source_images.push_back(img);
				} else {