mirror of https://github.com/godotengine/godot
parent
0dbec3abbb
commit
9c516d8383
|
|
@ -39,7 +39,9 @@ void BaseButton::_unpress_group() {
|
||||||
if (!button_group.is_valid())
|
if (!button_group.is_valid())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
status.pressed = false;
|
if (toggle_mode) {
|
||||||
|
status.pressed = true;
|
||||||
|
}
|
||||||
|
|
||||||
for (Set<BaseButton *>::Element *E = button_group->buttons.front(); E; E = E->next()) {
|
for (Set<BaseButton *>::Element *E = button_group->buttons.front(); E; E = E->next()) {
|
||||||
if (E->get() == this)
|
if (E->get() == this)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue