Преглед на файлове

Merge pull request #62644 from Piralein/remove_redundant_checkbox_check

Rémi Verschelde преди 3 години
родител
ревизия
0e93600fe0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      scene/gui/button.cpp

+ 1 - 1
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));