summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlupoDharkael <izhe@hotmail.es>2019-04-16 02:14:58 +0200
committerlupoDharkael <izhe@hotmail.es>2019-04-16 02:14:58 +0200
commitf137166251c4c734e1fd4d682492168483ccad3f (patch)
tree85ef671931b9b060d21bbdd3eefc0c14e4dfd8f4
parent0d87535dd776bb937c280d8465221e8e6661b017 (diff)
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() {