Do not call _validate_script if editor is not enabled

This commit is contained in:
Mika Viskari 2023-11-14 21:14:18 +02:00
parent baf6b4634d
commit 0fbc857e3f
1 changed files with 3 additions and 1 deletions

View File

@ -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) {