Merge pull request #62644 from Piralein/remove_redundant_checkbox_check

This commit is contained in:
Rémi Verschelde 2022-08-05 19:37:47 +02:00 committed by GitHub
commit 0e93600fe0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));