mirror of
https://github.com/godotengine/godot.git
synced 2024-11-30 16:12:46 +00:00
Merge pull request #12101 from RandomShaper/fix-seek-to-end
Fix animation not stopping after seeking to the end
This commit is contained in:
commit
c016e13c89
@ -529,12 +529,12 @@ void AnimationPlayer::_animation_process_data(PlaybackData &cd, float p_delta, f
|
||||
|
||||
if (&cd == &playback.current) {
|
||||
|
||||
if (!backwards && cd.pos < len && next_pos == len /*&& playback.blend.empty()*/) {
|
||||
if (!backwards && cd.pos <= len && next_pos == len /*&& playback.blend.empty()*/) {
|
||||
//playback finished
|
||||
end_notify = true;
|
||||
}
|
||||
|
||||
if (backwards && cd.pos > 0 && next_pos == 0 /*&& playback.blend.empty()*/) {
|
||||
if (backwards && cd.pos >= 0 && next_pos == 0 /*&& playback.blend.empty()*/) {
|
||||
//playback finished
|
||||
end_notify = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user