From f137166251c4c734e1fd4d682492168483ccad3f Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Tue, 16 Apr 2019 02:14:58 +0200 Subject: Validate scripts when they are loaded in the text editor --- editor/plugins/script_text_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() { -- cgit v1.2.3