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

const String &src_path = p_source_file;
	Ref<EditorSceneFormatImporter> importer;
	String ext = src_path.get_extension().to_lower();
	EditorProgress progress("import", TTR("Import Scene"), 104);
	progress.step(TTR("Importing Scene..."), 0);
	for (Ref<EditorSceneFormatImporter> importer_elem : importers) {
		List<String> extensions;
		importer_elem->get_extensions(&extensions);
		for (const String &F : extensions) {
			if (F.to_lower() == ext) {
				importer = importer_elem;
				break;
			}
		}
		if (importer.is_valid()) {
			break;
		}
	}
	ERR_FAIL_COND_V(!importer.is_valid(), ERR_FILE_UNRECOGNIZED);
	int import_flags = 0;
	if (animation_importer) {
		import_flags |= EditorSceneFormatImporter::IMPORT_ANIMATION;
		import_flags |= EditorSceneFormatImporter::IMPORT_DISCARD_MESHES_AND_MATERIALS;