### Godot version

v4.0.beta.custom_build [705273140]

### System information

windows 10

### Issue description

When importing a gltf file with embedded textures, godot will extract these textures, however it won't use the Project's Import settings, resulting in the textures looking compressed and messed up.
Also it creates a image file in the project- I don't remember it doing this before(it would just keep it embedded I think).

### Steps to reproduce

open project, check the included gltf file. See how it doesn't adhere to the project's import settings for texture2d. Instead it is all compressed and messed up.

### Minimal reproduction project

[gltf import bug.zip](https://github.com/godotengine/godot/files/10521850/gltf.import.bug.zip)

if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_RED == metalness_channel) {
							c.b = metallness_image->get_pixel(w, h).r;
						} else if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_GREEN == metalness_channel) {
							c.b = metallness_image->get_pixel(w, h).g;
						} else if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_BLUE == metalness_channel) {
							c.b = metallness_image->get_pixel(w, h).b;
						} else if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_ALPHA == metalness_channel) {
							c.b = metallness_image->get_pixel(w, h).a;
						}
					}
					orm_image->set_pixel(w, h, c);
				}
			}
			orm_image->generate_mipmaps();
			orm_texture->set_image(orm_image);
			GLTFTextureIndex orm_texture_index = -1;
			if (has_ao || has_roughness || has_metalness) {
				orm_texture->set_name(material->get_name() + "_orm");
				orm_texture_index = _set_texture(p_state, orm_texture, base_material->get_texture_filter(), base_material->get_flag(BaseMaterial3D::FLAG_USE_TEXTURE_REPEAT));
			}
			if (has_ao) {
				Dictionary occt;
				occt["index"] = orm_texture_index;
				d["occlusionTexture"] = occt;
			}
			if (has_roughness || has_metalness) {
				mrt["index"] = orm_texture_index;
				Dictionary extensions = _serialize_texture_transform_uv1(material);
				if (!extensions.is_empty()) {
					mrt["extensions"] = extensions;