Skip to content

Commit

Permalink
Do not call _validate_script if editor is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
miv391 committed Mar 1, 2024
1 parent baf6b46 commit 0fbc857
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/plugins/script_text_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0fbc857

Please sign in to comment.