From dd766bae7811a419f7371aab0f48ddb3c755ff68 Mon Sep 17 00:00:00 2001 From: Hein-Pieter van Braam Date: Mon, 7 Jan 2019 18:16:45 +0000 Subject: [PATCH] Use 'release_debug' for mono export templates Because we don't actually ship 'debug' templates to users make sure the mono exporter picks the correct 'data' directory for export templates. This fixes #24752 --- modules/mono/editor/godotsharp_export.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/editor/godotsharp_export.cpp b/modules/mono/editor/godotsharp_export.cpp index 85a1785e877..151a61d2b06 100644 --- a/modules/mono/editor/godotsharp_export.cpp +++ b/modules/mono/editor/godotsharp_export.cpp @@ -87,7 +87,7 @@ void GodotSharpExport::_export_begin(const Set &p_features, bool p_debug String build_config = p_debug ? "Debug" : "Release"; - String scripts_metadata_path = GodotSharpDirs::get_res_metadata_dir().plus_file("scripts_metadata." + String(p_debug ? "debug" : "release")); + String scripts_metadata_path = GodotSharpDirs::get_res_metadata_dir().plus_file("scripts_metadata." + String(p_debug ? "release_debug" : "release")); Error metadata_err = CSharpProject::generate_scripts_metadata(GodotSharpDirs::get_project_csproj_path(), scripts_metadata_path); ERR_FAIL_COND(metadata_err != OK);