diff options
| author | Ferenc Arn | 2017-09-26 19:40:00 -0400 |
|---|---|---|
| committer | Ferenc Arn | 2017-09-26 20:10:44 -0400 |
| commit | 9c516d8383d0cc7b1372dfe8450453bbd6cca034 (patch) | |
| tree | 1cde5935f42cc654e18f0b00f463aea8a2a29168 | |
| parent | 0dbec3abbb76fcc8ab7721286415abfb91873f88 (diff) | |
| download | godot-9c516d8383d0cc7b1372dfe8450453bbd6cca034.tar.gz godot-9c516d8383d0cc7b1372dfe8450453bbd6cca034.tar.zst godot-9c516d8383d0cc7b1372dfe8450453bbd6cca034.zip | |
| -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 04c0817b1..148277f2d 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) |
