Sfoglia il codice sorgente

Validate scripts when they are loaded in the text editor

lupoDharkael 6 anni fa
parent
commit
f137166251
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      editor/plugins/script_text_editor.cpp

+ 2 - 0
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() {