Merge pull request #40992 from vnen/fix-input-call

Fix _input being mistakenly called twice on script
This commit is contained in:
George Marques 2020-08-04 09:17:01 -03:00 committed by GitHub
commit ec678c5e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -880,7 +880,10 @@ void SceneTree::_call_input_pause(const StringName &p_group, const StringName &p
if (n->get_script_instance()) {
n->get_script_instance()->call(p_method, (const Variant **)v, 1, err);
}
n->call(p_method, (const Variant **)v, 1, err);
MethodBind *method = ClassDB::get_method(n->get_class_name(), p_method);
if (method) {
method->call(n, (const Variant **)v, 1, err);
}
}
call_lock--;