Merge pull request #38943 from neikeq/yakamashi

Mono/C#: Don't try to load project assembly in project manager
This commit is contained in:
Rémi Verschelde 2020-05-22 09:16:26 +02:00 committed by GitHub
commit 07ada02cb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.