Removed duplicated code
This commit is contained in:
parent
bd6ab5360f
commit
855a82211f
1 changed files with 0 additions and 16 deletions
|
@ -4053,18 +4053,10 @@ void AnimationTrackEditor::_move_selection_commit() {
|
||||||
undo_redo->add_undo_method(animation.ptr(), "track_insert_key", amr.track, amr.time, amr.key, amr.transition);
|
undo_redo->add_undo_method(animation.ptr(), "track_insert_key", amr.track, amr.time, amr.key, amr.transition);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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, amr.transition);
|
|
||||||
}
|
|
||||||
|
|
||||||
undo_redo->add_do_method(this, "_clear_selection_for_anim", animation);
|
undo_redo->add_do_method(this, "_clear_selection_for_anim", animation);
|
||||||
undo_redo->add_undo_method(this, "_clear_selection_for_anim", animation);
|
undo_redo->add_undo_method(this, "_clear_selection_for_anim", animation);
|
||||||
|
|
||||||
// 7-reselect
|
// 7-reselect
|
||||||
|
|
||||||
for (Map<SelectedKey, KeyInfo>::Element *E = selection.back(); E; E = E->prev()) {
|
for (Map<SelectedKey, KeyInfo>::Element *E = selection.back(); E; E = E->prev()) {
|
||||||
|
|
||||||
float oldpos = E->get().pos;
|
float oldpos = E->get().pos;
|
||||||
|
@ -4535,18 +4527,10 @@ void AnimationTrackEditor::_edit_menu_pressed(int p_option) {
|
||||||
undo_redo->add_undo_method(animation.ptr(), "track_insert_key", amr.track, amr.time, amr.key, amr.transition);
|
undo_redo->add_undo_method(animation.ptr(), "track_insert_key", amr.track, amr.time, amr.key, amr.transition);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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, amr.transition);
|
|
||||||
}
|
|
||||||
|
|
||||||
undo_redo->add_do_method(this, "_clear_selection_for_anim", animation);
|
undo_redo->add_do_method(this, "_clear_selection_for_anim", animation);
|
||||||
undo_redo->add_undo_method(this, "_clear_selection_for_anim", animation);
|
undo_redo->add_undo_method(this, "_clear_selection_for_anim", animation);
|
||||||
|
|
||||||
// 7-reselect
|
// 7-reselect
|
||||||
|
|
||||||
for (Map<SelectedKey, KeyInfo>::Element *E = selection.back(); E; E = E->prev()) {
|
for (Map<SelectedKey, KeyInfo>::Element *E = selection.back(); E; E = E->prev()) {
|
||||||
|
|
||||||
float oldpos = E->get().pos;
|
float oldpos = E->get().pos;
|
||||||
|
|
Loading…
Reference in a new issue