AnimationPlayer: fix scrubbing after play backwards
(cherry picked from commit b553b38e7b
)
This commit is contained in:
parent
d49579b038
commit
6d767b0f9a
|
@ -1011,6 +1011,7 @@ void AnimationPlayerEditor::_seek_value_changed(float p_value, bool p_set) {
|
||||||
|
|
||||||
player->seek_delta(pos, pos - cpos);
|
player->seek_delta(pos, pos - cpos);
|
||||||
} else {
|
} else {
|
||||||
|
player->stop(true);
|
||||||
player->seek(pos, true);
|
player->seek(pos, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1010,6 +1010,7 @@ void AnimationPlayer::stop(bool p_reset) {
|
||||||
c.blend.clear();
|
c.blend.clear();
|
||||||
if (p_reset) {
|
if (p_reset) {
|
||||||
c.current.from = NULL;
|
c.current.from = NULL;
|
||||||
|
c.current.speed_scale = 1;
|
||||||
}
|
}
|
||||||
_set_process(false);
|
_set_process(false);
|
||||||
queued.clear();
|
queued.clear();
|
||||||
|
|
Loading…
Reference in New Issue