diff options
author | Ferenc Arn <tagcup@yahoo.com> | 2017-09-26 19:40:00 -0400 |
---|---|---|
committer | Ferenc Arn <tagcup@yahoo.com> | 2017-09-26 20:10:44 -0400 |
commit | 9c516d8383d0cc7b1372dfe8450453bbd6cca034 (patch) | |
tree | 1cde5935f42cc654e18f0b00f463aea8a2a29168 /scene/gui | |
parent | 0dbec3abbb76fcc8ab7721286415abfb91873f88 (diff) |
Fix toggle mode of BaseButton.
..which got broken with #11480.
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/base_button.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index 04c0817b15..148277f2dd 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -39,7 +39,9 @@ void BaseButton::_unpress_group() { if (!button_group.is_valid()) return; - status.pressed = false; + if (toggle_mode) { + status.pressed = true; + } for (Set<BaseButton *>::Element *E = button_group->buttons.front(); E; E = E->next()) { if (E->get() == this) |