From 36ff8962ccd04f8b1367ea56ddf5d0fb5c71163a Mon Sep 17 00:00:00 2001 From: Hana <48352564+Piralein@users.noreply.github.com> Date: Sat, 2 Jul 2022 20:53:02 +0200 Subject: [PATCH] remove redundant check preventing checkbox theme style to apply hover_pressed --- scene/gui/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp index d8f8dfc7af5..b12ff3423f1 100644 --- a/scene/gui/button.cpp +++ b/scene/gui/button.cpp @@ -104,7 +104,7 @@ void Button::_notification(int p_what) { } } break; case DRAW_HOVER_PRESSED: { - if (has_stylebox("hover_pressed") && has_stylebox_override("hover_pressed")) { + if (has_stylebox("hover_pressed")) { style = get_stylebox("hover_pressed"); if (!flat) { style->draw(ci, Rect2(Point2(0, 0), size));