From 8f2b7018928845a96a61493d53cab4754cc8320d Mon Sep 17 00:00:00 2001 From: Alex Drozd Date: Thu, 16 Nov 2023 23:31:42 +0100 Subject: [PATCH] Fix order of operations for macos template check --- platform/macos/export/export_plugin.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/platform/macos/export/export_plugin.cpp b/platform/macos/export/export_plugin.cpp index 24cb76b4ab7a..8761fe22e30a 100644 --- a/platform/macos/export/export_plugin.cpp +++ b/platform/macos/export/export_plugin.cpp @@ -2026,9 +2026,9 @@ Error EditorExportPlatformMacOS::export_project(const Ref &p bool EditorExportPlatformMacOS::has_valid_export_configuration(const Ref &p_preset, String &r_error, bool &r_missing_templates, bool p_debug) const { String err; - // Look for export templates (custom templates). - bool dvalid = false; - bool rvalid = false; + // Look for export templates (official templates first, then custom). + bool dvalid = exists_export_template("macos.zip", &err); + bool rvalid = dvalid; // Both in the same ZIP. if (p_preset->get("custom_template/debug") != "") { dvalid = FileAccess::exists(p_preset->get("custom_template/debug")); @@ -2043,12 +2043,6 @@ bool EditorExportPlatformMacOS::has_valid_export_configuration(const Ref