diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-02 09:06:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 09:06:47 +0200 |
commit | b65ebfc7e720a947d3dab16824aa9975d50c5771 (patch) | |
tree | 55819568e2c7b90b7c5fff1f278b3ba1b19b06e2 | |
parent | afe03e872ba3585fc0669ce574c88dfb5a2d24b7 (diff) | |
parent | b07e788ad91dffebd229d1b2b634d313adf73a11 (diff) |
Merge pull request #36879 from ThakeeNathees/animation-autocomplete-bug-fix
Fix: animation autocomplete bug fixed
-rw-r--r-- | scene/animation/animation_player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 319d0171b3..2f39c973a0 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -1462,7 +1462,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<StringName> al; get_animation_list(&al); for (List<StringName>::Element *E = al.front(); E; E = E->next()) { |