mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 05:19:50 +01:00
Fix TouchScreenButton error spam
(cherry picked from commit db19cc60fb1aed98c54fb2722f525a624d56b17e)
This commit is contained in:
parent
ca55e41fe8
commit
3bb0c714bb
@ -190,7 +190,7 @@ String TouchScreenButton::get_action() const {
|
||||
void TouchScreenButton::_input(const Ref<InputEvent> &p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
|
||||
if (!get_tree()) {
|
||||
if (!is_visible_in_tree()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -198,8 +198,6 @@ void TouchScreenButton::_input(const Ref<InputEvent> &p_event) {
|
||||
return;
|
||||
}
|
||||
|
||||
ERR_FAIL_COND(!is_visible_in_tree());
|
||||
|
||||
const InputEventScreenTouch *st = Object::cast_to<InputEventScreenTouch>(*p_event);
|
||||
|
||||
if (passby_press) {
|
||||
|
Loading…
Reference in New Issue
Block a user