summaryrefslogtreecommitdiffstats
path: root/platform/web/export/export_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-17 11:20:08 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-17 11:20:08 +0200
commit229af8e5731030064deb5777f6adf3838618df54 (patch)
treea992d4bb1bc3bd336af25619bb2091e7fa80e0a8 /platform/web/export/export_plugin.cpp
parentaa9e4b8aceee79122cc336f616e48e56588ebfc1 (diff)
parentada360affefa5476e9b23effe58ecac15db5052e (diff)
downloadredot-engine-229af8e5731030064deb5777f6adf3838618df54.tar.gz
Merge pull request #78457 from aaronfranke/tex-format-fix-button
Add a button in the export dialog to fix missing texture formats
Diffstat (limited to 'platform/web/export/export_plugin.cpp')
-rw-r--r--platform/web/export/export_plugin.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/web/export/export_plugin.cpp b/platform/web/export/export_plugin.cpp
index 38e2714d9f..993abd2cee 100644
--- a/platform/web/export/export_plugin.cpp
+++ b/platform/web/export/export_plugin.cpp
@@ -37,6 +37,7 @@
#include "editor/editor_scale.h"
#include "editor/editor_settings.h"
#include "editor/export/editor_export.h"
+#include "editor/import/resource_importer_texture_settings.h"
#include "scene/resources/image_texture.h"
#include "modules/modules_enabled.gen.h" // For mono and svg.
@@ -406,10 +407,8 @@ bool EditorExportPlatformWeb::has_valid_project_configuration(const Ref<EditorEx
// Validate the project configuration.
if (p_preset->get("vram_texture_compression/for_mobile")) {
- String etc_error = test_etc2();
- if (!etc_error.is_empty()) {
+ if (!ResourceImporterTextureSettings::should_import_etc2_astc()) {
valid = false;
- err += etc_error;
}
}