### 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


d["bufferView"] = bvi;
			d["mimeType"] = "image/png";
		} else {
			ERR_FAIL_COND_V(p_path.is_empty(), ERR_INVALID_PARAMETER);
			String img_name = p_state->images[i]->get_name();
			if (img_name.is_empty()) {
				img_name = itos(i);
			}
			img_name = _gen_unique_name(p_state, img_name);
			img_name = img_name.pad_zeros(3) + ".png";
			String texture_dir = "textures";
			String path = p_path.get_base_dir();
			String new_texture_dir = path + "/" + texture_dir;
			Ref<DirAccess> da = DirAccess::open(path);
			if (!da->dir_exists(new_texture_dir)) {
				da->make_dir(new_texture_dir);
			}
			image->save_png(new_texture_dir.path_join(img_name));
			d["uri"] = texture_dir.path_join(img_name).uri_encode();
		}
		images.push_back(d);
	}
	print_verbose("Total images: " + itos(p_state->images.size()));
	if (!images.size()) {
		return OK;
	}
	p_state->json["images"] = images;
	return OK;
}
Error GLTFDocument::_parse_images(Ref<GLTFState> p_state, const String &p_base_path) {