summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorTecelli Akıntuğ <tecelli.e.a@gmail.com>2021-05-26 12:49:53 +0300
committerRémi Verschelde <rverschelde@gmail.com>2023-02-16 22:34:10 +0100
commit1ba05b4b3ac2014894c0de6d6c70253451b88a5f (patch)
tree8115b6baa9952171e9248bfa6b38760e831a8262 /scene/resources
parent15a97a2e8462ff76fe2eb44094f61320065b7dc8 (diff)
Fix AnimatedTexture inconsistency when setting frame
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/texture.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index 7e3156d2ff..085becb033 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -2704,6 +2704,7 @@ void AnimatedTexture::set_current_frame(int p_frame) {
RWLockWrite r(rw_lock);
current_frame = p_frame;
+ time = 0;
}
int AnimatedTexture::get_current_frame() const {