summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkleonc <9283098+kleonc@users.noreply.github.com>2023-05-13 13:10:38 +0200
committerkleonc <9283098+kleonc@users.noreply.github.com>2023-05-13 13:10:38 +0200
commitd3d84d90de79e086a78b80659c987f71283e3cd1 (patch)
tree2527116f400d2f0218a94a3e972ec98207da7463
parentc64afeb01731c477813d959daee99a99612d8077 (diff)
downloadredot-engine-d3d84d90de79e086a78b80659c987f71283e3cd1.tar.gz
Fix AnimatedSprite3D autoplay warning
-rw-r--r--scene/3d/sprite_3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp
index 59e4a0b718..9f7ff05924 100644
--- a/scene/3d/sprite_3d.cpp
+++ b/scene/3d/sprite_3d.cpp
@@ -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();
}
}
}