From b07e788ad91dffebd229d1b2b634d313adf73a11 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 --- 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 587485669e1..38642433196 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -1543,7 +1543,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()) {