diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2023-06-19 21:50:09 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2023-08-17 02:56:42 -0500 |
commit | ada360affefa5476e9b23effe58ecac15db5052e (patch) | |
tree | 4cf64308ccc54b1179cf51ae2e17a844714d53bd /platform/macos/export | |
parent | a278c1b98a81738a35b96a933a6e6cf771f9ab2d (diff) | |
download | redot-engine-ada360affefa5476e9b23effe58ecac15db5052e.tar.gz |
Add a button in the export dialog to fix missing texture formats
Diffstat (limited to 'platform/macos/export')
-rw-r--r-- | platform/macos/export/export_plugin.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/platform/macos/export/export_plugin.cpp b/platform/macos/export/export_plugin.cpp index e788ff1eec..6586fe7f82 100644 --- a/platform/macos/export/export_plugin.cpp +++ b/platform/macos/export/export_plugin.cpp @@ -41,6 +41,7 @@ #include "editor/editor_node.h" #include "editor/editor_paths.h" #include "editor/editor_scale.h" +#include "editor/import/resource_importer_texture_settings.h" #include "scene/resources/image_texture.h" #include "modules/modules_enabled.gen.h" // For svg and regex. @@ -2124,16 +2125,12 @@ bool EditorExportPlatformMacOS::has_valid_export_configuration(const Ref<EditorE // Check the texture formats, which vary depending on the target architecture. String architecture = p_preset->get("binary_format/architecture"); if (architecture == "universal" || architecture == "x86_64") { - const String bc_error = test_bc(); - if (!bc_error.is_empty()) { + if (!ResourceImporterTextureSettings::should_import_s3tc_bptc()) { valid = false; - err += bc_error; } } else if (architecture == "arm64") { - const String etc_error = test_etc2(); - if (!etc_error.is_empty()) { + if (!ResourceImporterTextureSettings::should_import_etc2_astc()) { valid = false; - err += etc_error; } } else { ERR_PRINT("Invalid architecture"); |