1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix missing undo/redo object and issue with removing actions

This commit is contained in:
Bastiaan Olij
2022-12-19 19:35:06 +11:00
parent e780dc332a
commit b5e205a57c
4 changed files with 7 additions and 4 deletions

View File

@@ -124,8 +124,8 @@ void OpenXRInteractionProfileEditorBase::remove_all_bindings_for_action(Ref<Open
undo_redo->create_action(TTR("Remove action from interaction profile"));
PackedStringArray paths = binding->get_paths();
for (const String &path : paths) {
undo_redo->add_do_method(this, "_remove_binding", p_action, path);
undo_redo->add_undo_method(this, "_add_binding", p_action, path);
undo_redo->add_do_method(this, "_remove_binding", action_name, path);
undo_redo->add_undo_method(this, "_add_binding", action_name, path);
}
undo_redo->commit_action(false);