summaryrefslogtreecommitdiffstats
path: root/platform/android/export
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2023-06-19 21:50:09 -0500
committerAaron Franke <arnfranke@yahoo.com>2023-08-17 02:56:42 -0500
commitada360affefa5476e9b23effe58ecac15db5052e (patch)
tree4cf64308ccc54b1179cf51ae2e17a844714d53bd /platform/android/export
parenta278c1b98a81738a35b96a933a6e6cf771f9ab2d (diff)
downloadredot-engine-ada360affefa5476e9b23effe58ecac15db5052e.tar.gz
Add a button in the export dialog to fix missing texture formats
Diffstat (limited to 'platform/android/export')
-rw-r--r--platform/android/export/export_plugin.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp
index 20aaed1e3e..21de46f4fc 100644
--- a/platform/android/export/export_plugin.cpp
+++ b/platform/android/export/export_plugin.cpp
@@ -47,6 +47,7 @@
#include "editor/editor_paths.h"
#include "editor/editor_scale.h"
#include "editor/editor_settings.h"
+#include "editor/import/resource_importer_texture_settings.h"
#include "main/splash.gen.h"
#include "scene/resources/image_texture.h"
@@ -2384,10 +2385,8 @@ bool EditorExportPlatformAndroid::has_valid_project_configuration(const Ref<Edit
}
}
- String etc_error = test_etc2();
- if (!etc_error.is_empty()) {
+ if (!ResourceImporterTextureSettings::should_import_etc2_astc()) {
valid = false;
- err += etc_error;
}
String min_sdk_str = p_preset->get("gradle_build/min_sdk");