summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-02-14 16:16:45 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-02-14 16:16:45 +0100
commitc6c788581e31e8c91c8df71a156081340eb27ebc (patch)
treeff74739b41c627a7936b8498434bce497bfe6aba
parentacb9f5008119eb6f9d7ca35d78e42ee8240501a8 (diff)
Drop unused AnimationTrackKeyEdit::track_editor
Added by mistake in 4a24ba6e77c7128e64dee31cf05f6960abdb8108.
-rw-r--r--editor/animation_track_editor.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp
index 929d6c7642..bee8ddcea0 100644
--- a/editor/animation_track_editor.cpp
+++ b/editor/animation_track_editor.cpp
@@ -649,8 +649,6 @@ public:
PropertyInfo hint;
NodePath base;
- AnimationTrackEditor *track_editor;
-
void notify_change() {
_change_notify();
@@ -665,7 +663,6 @@ public:
track = -1;
setting = false;
root_path = NULL;
- track_editor = NULL;
}
};
@@ -3221,14 +3218,6 @@ int AnimationTrackEditor::_confirm_insert(InsertData p_id, int p_last_track, boo
}
}
- /*
- undo_redo->add_do_method(this, "update_tracks");
- undo_redo->add_undo_method(this, "update");
- undo_redo->add_do_method(track_editor, "update");
- undo_redo->add_undo_method(track_editor, "update");
- undo_redo->add_do_method(track_pos, "update");
- undo_redo->add_undo_method(track_pos, "update");
-*/
undo_redo->commit_action();
return p_last_track;
@@ -3964,7 +3953,6 @@ void AnimationTrackEditor::_update_key_edit() {
key_edit = memnew(AnimationTrackKeyEdit);
key_edit->animation = animation;
key_edit->track = selection.front()->key().track;
- key_edit->track_editor = this;
float ofs = animation->track_get_key_time(key_edit->track, selection.front()->key().key);
key_edit->key_ofs = ofs;