You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
fix hovering on toggled texture buttons
fix hovering on toggled link buttons
This commit is contained in:
@@ -128,6 +128,7 @@ void TextureButton::_notification(int p_what) {
|
||||
if (normal.is_valid())
|
||||
texdraw = normal;
|
||||
} break;
|
||||
case DRAW_HOVER_PRESSED:
|
||||
case DRAW_PRESSED: {
|
||||
|
||||
if (pressed.is_null()) {
|
||||
@@ -150,7 +151,6 @@ void TextureButton::_notification(int p_what) {
|
||||
} else
|
||||
texdraw = hover;
|
||||
} break;
|
||||
case DRAW_HOVER_PRESSED: break; // Not used in this class
|
||||
case DRAW_DISABLED: {
|
||||
|
||||
if (disabled.is_null()) {
|
||||
|
||||
Reference in New Issue
Block a user