Skip to content

Commit

Permalink
Uses front and back span functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeblanc committed Jun 25, 2024
1 parent 9ef6ac3 commit 6e2b61b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/animation/runtime/track_sampling_job.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ bool TrackSamplingJob<_Track>::Run() const {

// Handles cases that do not require a search.
if (ratio <= 0.f) {
*result = values.data()[0];
*result = values.front();
} else if (ratio >= 1.f) {
*result = values.data()[values.size() - 1];
*result = values.back();
} else {
// Search for the first key frame with a ratio value greater than input
// ratio. Our ratio is between this one and the previous one.
Expand Down

0 comments on commit 6e2b61b

Please sign in to comment.