From 3af3e88d81a91dd570a4da4d6bd54cfef3259027 Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Sat, 13 May 2023 13:10:38 +0200 Subject: [PATCH] Fix AnimatedSprite3D autoplay warning (cherry picked from commit d3d84d90de79e086a78b80659c987f71283e3cd1) --- scene/3d/sprite_3d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index 59e4a0b7182..9f7ff05924a 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -1095,13 +1095,13 @@ void AnimatedSprite3D::set_sprite_frames(const Ref &p_frames) { frames->get_animation_list(&al); if (al.size() == 0) { set_animation(StringName()); - set_autoplay(String()); + autoplay = String(); } else { if (!frames->has_animation(animation)) { set_animation(al[0]); } if (!frames->has_animation(autoplay)) { - set_autoplay(String()); + autoplay = String(); } } }