From d7e21ecd63a984054c6bd330ee8ff6de5e53de7d Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Fri, 22 May 2020 02:17:06 +0200 Subject: Mono/C#: Don't try to load project assembly in project manager This was causing an error message when launching the manager, because there is no project assembly to load. --- modules/mono/mono_gd/gd_mono.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/mono/mono_gd/gd_mono.cpp b/modules/mono/mono_gd/gd_mono.cpp index 080f366692..5f518d0613 100644 --- a/modules/mono/mono_gd/gd_mono.cpp +++ b/modules/mono/mono_gd/gd_mono.cpp @@ -424,6 +424,9 @@ void GDMono::initialize_load_assemblies() { CRASH_COND_MSG(!tool_assemblies_loaded, "Mono: Failed to load '" TOOLS_ASM_NAME "' assemblies."); #endif + if (Main::is_project_manager()) + return; + // Load the project's main assembly. This doesn't necessarily need to succeed. // The game may not be using .NET at all, or if the project does use .NET and // we're running in the editor, it may just happen to be it wasn't built yet. -- cgit v1.2.3