diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-11-01 11:22:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-01 11:22:34 +0100 |
commit | aec8ea4f47af23e6acff181189bbbfaf7f3d18f5 (patch) | |
tree | 1eca0fc0d9e0aa2a0ac249b8c4a20f0d5e425623 /scene/gui/texture_button.cpp | |
parent | 3f46295a76372a8d05a8e94b29ac0525b43910fb (diff) | |
parent | cf2bdcbb3fc668da178df3f5640dc12a02a7f11f (diff) | |
download | redot-engine-aec8ea4f47af23e6acff181189bbbfaf7f3d18f5.tar.gz |
Merge pull request #22780 from samuelpedrajas/fix_texture_button_hovering
Fix hovering on toggled link and texture buttons
Diffstat (limited to 'scene/gui/texture_button.cpp')
-rw-r--r-- | scene/gui/texture_button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/texture_button.cpp b/scene/gui/texture_button.cpp index 413f9dbbe6..1940bbfa98 100644 --- a/scene/gui/texture_button.cpp +++ b/scene/gui/texture_button.cpp @@ -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()) { |