Merge pull request #62197 from timothyqiu/aniplayer-hint

Remove argument option for the `remove_animation` that no longer exists
This commit is contained in:
Rémi Verschelde 2022-06-19 09:15:26 +02:00 committed by GitHub
commit b6191261a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1909,7 +1909,7 @@ NodePath AnimationPlayer::get_root() const {
void AnimationPlayer::get_argument_options(const StringName &p_function, int p_idx, List<String> *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<StringName> al;
get_animation_list(&al);
for (const StringName &name : al) {