summaryrefslogtreecommitdiff
path: root/modules/mono/editor/mono_bottom_panel.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry <neikeq@users.noreply.github.com>2019-01-21 23:07:34 +0100
committerGitHub <noreply@github.com>2019-01-21 23:07:34 +0100
commit0b0dba38c766a06f169fb492cc6f8c7c3e444de5 (patch)
tree66fc706b7e5a11936594c9415010f74e4164f1fd /modules/mono/editor/mono_bottom_panel.cpp
parent3548b6b6b2e2afbe1efa34e298a07664fdee2289 (diff)
parent077e48977384a1b1c2e527e5df9012b64b56e847 (diff)
Merge pull request #25200 from neikeq/oo
Mono: Add assembly reloading to running games
Diffstat (limited to 'modules/mono/editor/mono_bottom_panel.cpp')
-rw-r--r--modules/mono/editor/mono_bottom_panel.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/mono/editor/mono_bottom_panel.cpp b/modules/mono/editor/mono_bottom_panel.cpp
index feebdb380b..55a334bc4e 100644
--- a/modules/mono/editor/mono_bottom_panel.cpp
+++ b/modules/mono/editor/mono_bottom_panel.cpp
@@ -30,6 +30,9 @@
#include "mono_bottom_panel.h"
+#include "editor/plugins/script_editor_plugin.h"
+#include "editor/script_editor_debugger.h"
+
#include "../csharp_script.h"
#include "../godotsharp_dirs.h"
#include "csharp_project.h"
@@ -160,7 +163,12 @@ void MonoBottomPanel::_build_project_pressed() {
bool build_success = GodotSharpBuilds::get_singleton()->build_project_blocking("Tools");
if (build_success) {
+ // Notify running game for hot-reload
+ ScriptEditor::get_singleton()->get_debugger()->reload_scripts();
+
+ // Hot-reload in the editor
MonoReloadNode::get_singleton()->restart_reload_timer();
+
if (CSharpLanguage::get_singleton()->is_assembly_reloading_needed()) {
CSharpLanguage::get_singleton()->reload_assemblies(false);
}