Skip to content

Commit

Permalink
Fix discrete key retrieval method after start
Browse files Browse the repository at this point in the history
  • Loading branch information
TokageItLab committed Jan 2, 2024
1 parent 06bb9f2 commit b438e28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scene/animation/animation_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ void AnimationPlayer::_process_playback_data(PlaybackData &cd, double p_delta, f
pi.delta = delta;
pi.seeked = p_seeked;
}
pi.is_external_seeking = true; // AnimationPlayer doesn't have internal seeking.
// AnimationPlayer doesn't have internal seeking.
// However, immediately after playback, discrete keys should be retrieved with EXACT mode since behind keys must be ignored at that time.
pi.is_external_seeking = !p_started;
pi.looped_flag = looped_flag;
pi.weight = p_blend;
make_animation_instance(cd.from->name, pi);
Expand Down

0 comments on commit b438e28

Please sign in to comment.