Fix clang format warnings.

This commit is contained in:
Relintai 2023-09-07 12:00:31 +02:00
parent 9a2bf73280
commit bd9abfc160

View File

@ -31,8 +31,10 @@ void TouchButton::_notification(int p_what) {
} break;
case NOTIFICATION_VISIBILITY_CHANGED: {
if (Engine::get_singleton()->is_editor_hint())
if (Engine::get_singleton()->is_editor_hint()) {
break;
}
if (is_visible_in_tree()) {
set_process_input(true);
} else {
@ -45,16 +47,19 @@ void TouchButton::_notification(int p_what) {
}
void TouchButton::_input(Ref<InputEvent> p_event) {
if (!get_tree())
if (!get_tree()) {
return;
}
if (p_event->get_device() == -1)
if (p_event->get_device() == -1) {
return;
}
ERR_FAIL_COND(!is_visible_in_tree());
if (is_disabled()) // no interaction with disabled button
if (is_disabled()) { // no interaction with disabled button
return;
}
Ref<InputEventScreenTouch> b = p_event;