You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix option_button.cpp not updating selected when out of bounds
This commit is contained in:
@@ -314,6 +314,10 @@ void OptionButton::set_item_count(int p_count) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (current > p_count - 1) {
|
||||
_select(p_count - 1, false);
|
||||
}
|
||||
|
||||
popup->set_item_count(p_count);
|
||||
|
||||
if (p_count > count_old) {
|
||||
|
||||
Reference in New Issue
Block a user