diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-05 12:05:57 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-05 12:05:57 +0100 |
| commit | 5b50df2419c271b518099d3b4ac7caecc43cead8 (patch) | |
| tree | 362f63bf67f7cb85080fd4f33c54b158db729d8f | |
| parent | bf1de980e5c802af44caf806204886714fee6d2e (diff) | |
| parent | 7035cf8c9088ee6e213f2e2e6ac5d6c40aed6680 (diff) | |
| download | redot-engine-5b50df2419c271b518099d3b4ac7caecc43cead8.tar.gz | |
Merge pull request #86769 from StagnationPoint/logging_improvement
Add logging when macOS export will fail due to disabled texture formats.
| -rw-r--r-- | platform/macos/export/export_plugin.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/platform/macos/export/export_plugin.cpp b/platform/macos/export/export_plugin.cpp index 6f9db1427b..6e750d0a16 100644 --- a/platform/macos/export/export_plugin.cpp +++ b/platform/macos/export/export_plugin.cpp @@ -2051,13 +2051,17 @@ bool EditorExportPlatformMacOS::has_valid_export_configuration(const Ref<EditorE String architecture = p_preset->get("binary_format/architecture"); if (architecture == "universal" || architecture == "x86_64") { if (!ResourceImporterTextureSettings::should_import_s3tc_bptc()) { + err += TTR("Cannot export for universal or x86_64 if S3TC BPTC texture format is disabled. Enable it in the Project Settings (Rendering > Textures > VRAM Compression > Import S3TC BPTC).") + "\n"; valid = false; } - } else if (architecture == "arm64") { + } + if (architecture == "universal" || architecture == "arm64") { if (!ResourceImporterTextureSettings::should_import_etc2_astc()) { + err += TTR("Cannot export for universal or arm64 if ETC2 ASTC texture format is disabled. Enable it in the Project Settings (Rendering > Textures > VRAM Compression > Import ETC2 ASTC).") + "\n"; valid = false; } - } else { + } + if (architecture != "universal" && architecture != "x86_64" && architecture != "arm64") { ERR_PRINT("Invalid architecture"); } |
