Do not call _validate_script if editor is not enabled
This commit is contained in:
1 parent
baf6b4634d
commit
0fbc857e3f
1 file changed
+3
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user