diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-17 00:32:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-17 00:32:55 +0100 |
commit | b0dd9d69423124a11fa1e3740518bda12b66faa3 (patch) | |
tree | daacd8afcbbaf68b89ded29101d806a1cf416553 /scene | |
parent | eb1af0d95fc80096d6679e722c2b470792d89fb3 (diff) | |
parent | 1ba05b4b3ac2014894c0de6d6c70253451b88a5f (diff) |
Merge pull request #49102 from ANamelessGhoul/master
Fix AnimatedTexture inconsistency when setting frame
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/texture.cpp | 1 |
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 { |