From 3a08658881f3b11576a6a43b45bb0db005b80ca6 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Sat, 7 Mar 2020 02:28:17 +0530 Subject: [PATCH] animation autocomplete bug fixed (cherry picked from commit b07e788ad91dffebd229d1b2b634d313adf73a11) --- scene/animation/animation_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 727671a6e25..acba1497d2b 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -1542,7 +1542,7 @@ void AnimationPlayer::get_argument_options(const StringName &p_function, int p_i #endif String pf = p_function; - if (p_function == "play" || p_function == "play_backwards" || p_function == "remove_animation" || p_function == "has_animation" || p_function == "queue") { + if (p_idx == 0 && (p_function == "play" || p_function == "play_backwards" || p_function == "remove_animation" || p_function == "has_animation" || p_function == "queue")) { List al; get_animation_list(&al); for (List::Element *E = al.front(); E; E = E->next()) {