summaryrefslogtreecommitdiff
path: root/editor/animation_bezier_editor.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-23 08:48:10 +0200
committerGitHub <noreply@github.com>2019-09-23 08:48:10 +0200
commitc593fbed3d9f5ee8c3dd61ece73dbbab924b205f (patch)
tree85708c2029491ce782999c878bf5bd8ac4b28131 /editor/animation_bezier_editor.cpp
parent0782082433be89c67c2cfc6780e4ea4b6ae6af62 (diff)
parentfbcb68c15ac4e8f7baed93154dcd03d127f460d9 (diff)
Merge pull request #32010 from puthre/fix_undo_animation_bezier
Animation Bezier Editor : fix double inserts on undo
Diffstat (limited to 'editor/animation_bezier_editor.cpp')
-rw-r--r--editor/animation_bezier_editor.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp
index 6728f60e06..9194da654c 100644
--- a/editor/animation_bezier_editor.cpp
+++ b/editor/animation_bezier_editor.cpp
@@ -929,13 +929,6 @@ void AnimationBezierTrackEdit::_gui_input(const Ref<InputEvent> &p_event) {
undo_redo->add_undo_method(animation.ptr(), "track_insert_key", amr.track, amr.time, amr.key, 1);
}
- // 6-(undo) reinsert overlapped keys
- for (List<AnimMoveRestore>::Element *E = to_restore.front(); E; E = E->next()) {
-
- AnimMoveRestore &amr = E->get();
- undo_redo->add_undo_method(animation.ptr(), "track_insert_key", amr.track, amr.time, amr.key, 1);
- }
-
undo_redo->add_do_method(this, "_clear_selection_for_anim", animation);
undo_redo->add_undo_method(this, "_clear_selection_for_anim", animation);