summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2020-05-22 02:17:06 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2020-05-22 02:17:59 +0200
commitd7e21ecd63a984054c6bd330ee8ff6de5e53de7d (patch)
tree705e326dacbcccdc070cd941307afcaf0b57ecae
parent9239412027b6c25009efab69dc39650e0d76c56d (diff)
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.
-rw-r--r--modules/mono/mono_gd/gd_mono.cpp3
1 files changed, 3 insertions, 0 deletions
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.