You've already forked godot
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user