Browse Source

Merge pull request #18682 from YeldhamDev/play_backwards_autocomplete

Added "play_backwards" to the list o functions to autocomplete
Juan Linietsky 7 years ago
parent
commit
4db0da0fcc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/animation/animation_player.cpp

+ 1 - 1
scene/animation/animation_player.cpp

@@ -1208,7 +1208,7 @@ NodePath AnimationPlayer::get_root() const {
 void AnimationPlayer::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const {
 void AnimationPlayer::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const {
 
 
 	String pf = p_function;
 	String pf = p_function;
-	if (p_function == "play" || p_function == "remove_animation" || p_function == "has_animation" || p_function == "queue") {
+	if (p_function == "play" || p_function == "play_backwards" || p_function == "remove_animation" || p_function == "has_animation" || p_function == "queue") {
 		List<StringName> al;
 		List<StringName> al;
 		get_animation_list(&al);
 		get_animation_list(&al);
 		for (List<StringName>::Element *E = al.front(); E; E = E->next()) {
 		for (List<StringName>::Element *E = al.front(); E; E = E->next()) {