Skip to content

Commit

Permalink
Merge pull request #40992 from vnen/fix-input-call
Browse files Browse the repository at this point in the history
Fix _input being mistakenly called twice on script
  • Loading branch information
vnen authored Aug 4, 2020
2 parents 9adf6d3 + b8671b6 commit ec678c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scene/main/scene_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
Expand Down

0 comments on commit ec678c5

Please sign in to comment.