Do not call _validate_script if editor is not enabled
This commit is contained in:
parent
baf6b4634d
commit
0fbc857e3f
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue