Remove extra get_script_instance check

Otherwise, `_ready()` will not be called on classes
that define this function and doesn't have a script attached.
This commit is contained in:
Hennadii Chernyshchyk 2021-09-04 12:14:51 +03:00
parent d20031ccae
commit 2b78353e79
No known key found for this signature in database
GPG Key ID: 24623302B8395825

View File

@ -123,7 +123,6 @@ void Node::_notification(int p_notification) {
}
} break;
case NOTIFICATION_READY: {
if (get_script_instance()) {
if (GDVIRTUAL_IS_OVERRIDDEN(_input)) {
set_process_input(true);
}
@ -144,7 +143,7 @@ void Node::_notification(int p_notification) {
}
GDVIRTUAL_CALL(_ready);
}
if (data.filename.length()) {
ERR_FAIL_COND(!is_inside_tree());
get_multiplayer()->scene_enter_exit_notify(data.filename, this, true);