You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fix _input being mistakenly called twice on script
Instead it calls both the script and the native method.
This commit is contained in:
@@ -880,7 +880,10 @@ void SceneTree::_call_input_pause(const StringName &p_group, const StringName &p
|
|||||||
if (n->get_script_instance()) {
|
if (n->get_script_instance()) {
|
||||||
n->get_script_instance()->call(p_method, (const Variant **)v, 1, err);
|
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--;
|
call_lock--;
|
||||||
|
|||||||
Reference in New Issue
Block a user