diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-22 22:37:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 22:37:33 +0200 |
commit | b8a64313f0675a7e781e21b530a43d824651f44d (patch) | |
tree | aaa24e4d70cbc2135edade0780650c8c666fc196 /scene | |
parent | 9c567a0604f1cedcce3dfa1a707d3671c51a0155 (diff) | |
parent | ece3df39386af85b069cbb67ae1893b4365f1bd3 (diff) |
Merge pull request #59564 from KoBeWi/FINALLY,_ULTIMATE_UNDO_REDO
Diffstat (limited to 'scene')
-rw-r--r-- | scene/animation/animation_player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 531cd045b5..48626ccc1b 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -37,6 +37,7 @@ #ifdef TOOLS_ENABLED #include "editor/editor_node.h" +#include "editor/editor_undo_redo_manager.h" #include "scene/2d/skeleton_2d.h" void AnimatedValuesBackup::update_skeletons() { @@ -2044,7 +2045,7 @@ Ref<AnimatedValuesBackup> AnimationPlayer::apply_reset(bool p_user_initiated) { Ref<AnimatedValuesBackup> new_values = aux_player->backup_animated_values(); old_values->restore(); - UndoRedo *ur = EditorNode::get_singleton()->get_undo_redo(); + Ref<EditorUndoRedoManager> &ur = EditorNode::get_undo_redo(); ur->create_action(TTR("Anim Apply Reset")); ur->add_do_method(new_values.ptr(), "restore"); ur->add_undo_method(old_values.ptr(), "restore"); |