summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-04-16 10:10:57 +0200
committerGitHub <noreply@github.com>2019-04-16 10:10:57 +0200
commit642076888716f6e15b77925ff2f764351fe381d9 (patch)
tree5be2cc10a5fa1ca072ca8fe052870ebeae965eab
parent192d176d30c3ad6d9e5c976b49b30d7349f2b5af (diff)
parentf137166251c4c734e1fd4d682492168483ccad3f (diff)
Merge pull request #28073 from lupoDharkael/early-validation
Validate scripts when they are loaded in the text editor
-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 543771ad1c..c586985957 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -81,6 +81,8 @@ void ScriptTextEditor::set_edited_resource(const RES &p_res) {
emit_signal("name_changed");
code_editor->update_line_and_column();
+
+ _validate_script();
}
void ScriptTextEditor::_update_member_keywords() {