diff options
author | RedworkDE <10944644+RedworkDE@users.noreply.github.com> | 2023-03-31 11:53:16 +0200 |
---|---|---|
committer | RedworkDE <10944644+RedworkDE@users.noreply.github.com> | 2023-06-21 12:47:52 +0200 |
commit | e0f644a48da49843ad63a06982af85f13783899c (patch) | |
tree | eb5d5cee4e2502679d5e83d6f69d76afe6d6d27c /modules/mono/mono_gd/gd_mono.h | |
parent | 58fae90ff39c30d19ecd902d3ae9a4de136ca501 (diff) | |
download | redot-engine-e0f644a48da49843ad63a06982af85f13783899c.tar.gz |
C#: Fix editor integration breaking and causing error spam when reloading assemblies fails
- Do not reload scripts from non-collectible assemblies
- Do not load GodotTools as collectible
- Do not attempt to reload the same project assembly forever
Diffstat (limited to 'modules/mono/mono_gd/gd_mono.h')
-rw-r--r-- | modules/mono/mono_gd/gd_mono.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/mono/mono_gd/gd_mono.h b/modules/mono/mono_gd/gd_mono.h index 398f94d924..c629ab2eff 100644 --- a/modules/mono/mono_gd/gd_mono.h +++ b/modules/mono/mono_gd/gd_mono.h @@ -68,6 +68,7 @@ class GDMono { String project_assembly_path; uint64_t project_assembly_modified_time = 0; + int project_load_failure_count = 0; #ifdef TOOLS_ENABLED bool _load_project_assembly(); @@ -144,6 +145,7 @@ public: #endif #ifdef GD_MONO_HOT_RELOAD + void reload_failure(); Error reload_project_assemblies(); #endif |