You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Remove redundant "== false" code
Some of this code has been re-organized. f
This commit is contained in:
@@ -368,7 +368,7 @@ BaseButton::DrawMode BaseButton::get_draw_mode() const {
|
||||
return DRAW_DISABLED;
|
||||
};
|
||||
|
||||
if (status.press_attempt == false && status.hovering) {
|
||||
if (!status.press_attempt && status.hovering) {
|
||||
if (status.pressed)
|
||||
return DRAW_HOVER_PRESSED;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user