Fix missed renamings from empty() to is_empty()

Those were missed in #44401 or added by later PRs.
This commit is contained in:
Rémi Verschelde
2020-12-29 09:54:59 +01:00
parent c6e9d912e1
commit 09212fba1e
12 changed files with 18 additions and 18 deletions

View File

@ -782,13 +782,13 @@ void AnimationPlayer::_animation_process_data(PlaybackData &cd, float p_delta, f
delta = next_pos - cd.pos; // Fix delta (after determination of backwards because negative zero is lost here)
if (&cd == &playback.current) {
if (!backwards && cd.pos <= len && next_pos == len /*&& playback.blend.empty()*/) {
if (!backwards && cd.pos <= len && next_pos == len) {
//playback finished
end_reached = true;
end_notify = cd.pos < len; // Notify only if not already at the end
}
if (backwards && cd.pos >= 0 && next_pos == 0 /*&& playback.blend.empty()*/) {
if (backwards && cd.pos >= 0 && next_pos == 0) {
//playback finished
end_reached = true;
end_notify = cd.pos > 0; // Notify only if not already at the beginning