mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 20:53:15 +00:00
Fix AnimatedSprite3D autoplay warning
(cherry picked from commit d3d84d90de
)
This commit is contained in:
parent
2bcad4c55b
commit
3af3e88d81
@ -1095,13 +1095,13 @@ void AnimatedSprite3D::set_sprite_frames(const Ref<SpriteFrames> &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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user