diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 4c08449b8db..13b1c4b6ac4 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -341,7 +341,9 @@ void ScriptTextEditor::reload_text() { te->tag_saved_version(); code_editor->update_line_and_column(); - _validate_script(); + if (editor_enabled) { + _validate_script(); + } } void ScriptTextEditor::add_callback(const String &p_function, const PackedStringArray &p_args) {