Bläddra i källkod

animation autocomplete bug fixed

(cherry picked from commit b07e788ad91dffebd229d1b2b634d313adf73a11)
Thakee Nathees 5 år sedan
förälder
incheckning
3a08658881
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      scene/animation/animation_player.cpp

+ 1 - 1
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<StringName> al;
 		get_animation_list(&al);
 		for (List<StringName>::Element *E = al.front(); E; E = E->next()) {