[Export] Suppress duplicate texture format errors in UI and add missing in console mode.

This commit is contained in:
Pāvels Nadtočajevs
2026-05-27 10:48:07 +03:00
parent c96e11965f
commit 2b1959a476
4 changed files with 13 additions and 3 deletions
+3
View File
@@ -470,6 +470,9 @@ bool EditorExportPlatformWeb::has_valid_project_configuration(const Ref<EditorEx
if (p_preset->get("vram_texture_compression/for_mobile")) {
if (!ResourceImporterTextureSettings::should_import_etc2_astc()) {
if (EditorNode::is_cmdline_mode()) {
err += TTR("ETC2/ASTC texture compression is required for Web export. In the Project Settings, search for 'ETC2' in the search field, or enable 'Advanced Settings', and go to Rendering > Textures > VRAM Compression to enable 'Import ETC2 ASTC'.") + "\n";
}
valid = false;
}
}