Merge pull request #85569 from TokageItLab/fix-seek-diecrete

Fix AnimationPlayer seeking for Discrete keys
This commit is contained in:
Rémi Verschelde 2023-12-04 23:19:58 +01:00
commit b8ba602e8c
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -233,7 +233,7 @@ void AnimationPlayer::_process_playback_data(PlaybackData &cd, double p_delta, f
pi.delta = delta;
pi.seeked = p_seeked;
}
pi.is_external_seeking = false;
pi.is_external_seeking = true; // AnimationPlayer doesn't have internal seeking.
pi.looped_flag = looped_flag;
pi.weight = p_blend;
make_animation_instance(cd.from->name, pi);