From 0fbc857e3f0fead7532699abc66e2005b266309b Mon Sep 17 00:00:00 2001 From: Mika Viskari Date: Tue, 14 Nov 2023 21:14:18 +0200 Subject: [PATCH] Do not call _validate_script if editor is not enabled --- editor/plugins/script_text_editor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 9ed997dca75..92fdfad4056 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, PackedStringArray p_args) {