From 74e15ea35ff8b291e42e2c0b8f39c5708c63de15 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sun, 19 Jun 2022 11:08:19 +0800 Subject: [PATCH] Remove argument option for the `remove_animation` that no longer exists --- 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 8edfaa58539..5d471c9e847 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -1909,7 +1909,7 @@ NodePath AnimationPlayer::get_root() const { void AnimationPlayer::get_argument_options(const StringName &p_function, int p_idx, List *r_options) const { String pf = p_function; - if (p_idx == 0 && (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 == "has_animation" || p_function == "queue")) { List al; get_animation_list(&al); for (const StringName &name : al) {