Skip to content

Commit

Permalink
Merge pull request #36879 from ThakeeNathees/animation-autocomplete-b…
Browse files Browse the repository at this point in the history
…ug-fix

Fix: animation autocomplete bug fixed
  • Loading branch information
akien-mga authored Jul 2, 2020
2 parents afe03e8 + b07e788 commit b65ebfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/animation/animation_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit b65ebfc

Please sign in to comment.