Fix AnimatedTexture inconsistency when setting frame
This commit is contained in:
parent
15a97a2e84
commit
1ba05b4b3a
2 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue