summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-08-17 19:42:44 +0200
committerGitHub <noreply@github.com>2021-08-17 19:42:44 +0200
commitaa3909cf5412cc96e4f5958e47f687034bf82150 (patch)
tree1404a6398bdbc2aeca1f4c4d637f01a150905ffc /editor/plugins/script_text_editor.cpp
parent273d1ca9329aaa849e18f4d3a1f3f461d54dbb41 (diff)
parent1c61245990b78a0693b13b465cebbd5d23160425 (diff)
downloadredot-engine-aa3909cf5412cc96e4f5958e47f687034bf82150.tar.gz
Merge pull request #51729 from yjh0502/ext-reload-master
Auto-reload scripts with external editor
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r--editor/plugins/script_text_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index 11cc6abf0b..7f2908eada 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -666,6 +666,8 @@ void ScriptEditor::_update_modified_scripts_for_external_editor(Ref<Script> p_fo
script->set_source_code(rel_script->get_source_code());
script->set_last_modified_time(rel_script->get_last_modified_time());
script->update_exports();
+
+ _trigger_live_script_reload();
}
}
}