summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-02-11 08:22:20 +0100
committerGitHub <noreply@github.com>2022-02-11 08:22:20 +0100
commitfd3c9db5781c0f72533567794c4b7e1466e2612d (patch)
tree1266cd687a32377a17e4a453835668eec134d7bd
parent73f13120867fed5a2e71599e33f08222bc7a140e (diff)
parent52649d5402c8ac1a7f86f9ad05102dfdcfc09b25 (diff)
Merge pull request #57946 from Razoric480/raz/fix_track_select
Fix selecting keys in Animation Track Editor
-rw-r--r--editor/animation_track_editor.cpp2
-rw-r--r--editor/animation_track_editor.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp
index de924e84dc..ba5cdb2896 100644
--- a/editor/animation_track_editor.cpp
+++ b/editor/animation_track_editor.cpp
@@ -4952,7 +4952,7 @@ void AnimationTrackEditor::_add_method_key(const String &p_method) {
EditorNode::get_singleton()->show_warning(TTR("Method not found in object: ") + p_method);
}
-void AnimationTrackEditor::_key_selected(int p_track, int p_key, bool p_single) {
+void AnimationTrackEditor::_key_selected(int p_key, bool p_single, int p_track) {
ERR_FAIL_INDEX(p_track, animation->get_track_count());
ERR_FAIL_INDEX(p_key, animation->track_get_key_count(p_track));
diff --git a/editor/animation_track_editor.h b/editor/animation_track_editor.h
index edba784310..627c7c1d97 100644
--- a/editor/animation_track_editor.h
+++ b/editor/animation_track_editor.h
@@ -406,7 +406,7 @@ class AnimationTrackEditor : public VBoxContainer {
Map<SelectedKey, KeyInfo> selection;
- void _key_selected(int p_track, int p_key, bool p_single);
+ void _key_selected(int p_key, bool p_single, int p_track);
void _key_deselected(int p_key, int p_track);
bool moving_selection;