Skip to content

Commit

Permalink
Formats code
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeblanc committed Mar 29, 2024
1 parent e30712d commit 92d3d38
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/animation/offline/raw_track_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@

namespace ozz {
namespace animation {

using internal::TrackPolicy;

namespace offline {

namespace {
Expand All @@ -52,8 +55,8 @@ typename _Key::ValueType TrackLerp(const _Key& _left, const _Key& _right,
if (_left.interpolation == RawTrackInterpolation::kStep && _alpha < 1.f) {
return _left.value;
}
return animation::internal::TrackPolicy<typename _Key::ValueType>::Lerp(
_left.value, _right.value, _alpha);
return TrackPolicy<typename _Key::ValueType>::Lerp(_left.value, _right.value,
_alpha);
}

template <>
Expand All @@ -70,8 +73,7 @@ math::Quaternion TrackLerp(const RawQuaternionTrack::Keyframe& _left,
if (dot < 0.f) {
rq = -rq;
}
return animation::internal::TrackPolicy<math::Quaternion>::Lerp(lq, rq,
_alpha);
return TrackPolicy<math::Quaternion>::Lerp(lq, rq, _alpha);
}

template <typename _Keyframes>
Expand All @@ -80,8 +82,7 @@ typename _Keyframes::value_type::ValueType _SampleTrack(
using Keyframe = typename _Keyframes::value_type;
if (_keyframes.size() == 0) {
// Return identity if there's no key for this track.
return animation::internal::TrackPolicy<
typename Keyframe::ValueType>::identity();
return TrackPolicy<typename Keyframe::ValueType>::identity();
} else if (_ratio <= _keyframes.front().ratio) {
// Returns the first keyframe if _time is before the first keyframe.
return _keyframes.front().value;
Expand Down

0 comments on commit 92d3d38

Please sign in to comment.