You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Cleanup of action map dialogs
This commit is contained in:
@@ -66,7 +66,7 @@ void OpenXRSelectActionDialog::_on_select_action(const String p_action) {
|
||||
void OpenXRSelectActionDialog::open() {
|
||||
ERR_FAIL_COND(action_map.is_null());
|
||||
|
||||
// out with the old...
|
||||
// Out with the old.
|
||||
while (main_vb->get_child_count() > 0) {
|
||||
memdelete(main_vb->get_child(0));
|
||||
}
|
||||
@@ -74,6 +74,7 @@ void OpenXRSelectActionDialog::open() {
|
||||
selected_action = "";
|
||||
action_buttons.clear();
|
||||
|
||||
// In with the new.
|
||||
Array action_sets = action_map->get_action_sets();
|
||||
for (int i = 0; i < action_sets.size(); i++) {
|
||||
Ref<OpenXRActionSet> action_set = action_sets[i];
|
||||
|
||||
Reference in New Issue
Block a user