summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-10-09 15:12:52 +0200
committerkobewi <kobewi4e@gmail.com>2024-01-17 22:30:56 +0100
commitc7f68a27ec4b825302998eeb5a400f869cd21cf7 (patch)
tree7c53a5636e1f1a055ce976fda2ca26b5839d5897 /editor/plugins/script_text_editor.cpp
parent107f2961ccfac179af7682eb5f6e7ea91e80040c (diff)
downloadredot-engine-c7f68a27ec4b825302998eeb5a400f869cd21cf7.tar.gz
Add UID support to GDScript files
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r--editor/plugins/script_text_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index 45fb531d37..babae9eae8 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -146,6 +146,7 @@ void ScriptTextEditor::set_edited_resource(const Ref<Resource> &p_res) {
ERR_FAIL_COND(p_res.is_null());
script = p_res;
+ script->connect_changed(callable_mp((ScriptEditorBase *)this, &ScriptEditorBase::reload_text));
code_editor->get_text_editor()->set_text(script->get_source_code());
code_editor->get_text_editor()->clear_undo_history();