summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorJihyun Yu <yjh0502@gmail.com>2021-08-17 17:32:23 +0900
committerJihyun Yu <yjh0502@gmail.com>2021-08-17 21:43:45 +0900
commit1c61245990b78a0693b13b465cebbd5d23160425 (patch)
tree1ab76f8020a503ceaa2ad4d8764157b34c2e5064 /editor/plugins/script_text_editor.cpp
parentc4e03672e8989c58d38509971d097496c790fc7d (diff)
downloadredot-engine-1c61245990b78a0693b13b465cebbd5d23160425.tar.gz
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 4491c13b4c..d3f07ab39a 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();
}
}
}