Do not call _validate_script if editor is not enabled
This commit is contained in:
parent
baf6b4634d
commit
0fbc857e3f
|
@ -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 New Issue