diff --git a/samples/framework/motion_utils.cc b/samples/framework/motion_utils.cc index 20db10d08..f314de33b 100644 --- a/samples/framework/motion_utils.cc +++ b/samples/framework/motion_utils.cc @@ -215,6 +215,13 @@ bool MotionSampler::Update(const MotionTrack& _motion, float _ratio, int _loops, return true; } +bool DrawMotion(ozz::sample::Renderer* _renderer, + const MotionTrack& _motion_track, float _from, float _at, + float _to, float _step, const ozz::math::Float4x4& _transform) { + return DrawMotion(_renderer, _motion_track, _from, _at, _to, _step, + _transform, ozz::math::Quaternion::identity()); +} + // Uses a MotionSampler to estimate past and future positions arount _at. // This is a great test for the MotionSampler and MotionAccumulator. bool DrawMotion(ozz::sample::Renderer* _renderer, diff --git a/samples/motion_extraction/sample_motion_extraction.cc b/samples/motion_extraction/sample_motion_extraction.cc index 251ba8dee..f249ecd60 100644 --- a/samples/motion_extraction/sample_motion_extraction.cc +++ b/samples/motion_extraction/sample_motion_extraction.cc @@ -148,9 +148,8 @@ class MotionExtractionSampleApplication : public ozz::sample::Application { // Draw motion tracks. const float at = controller_.time_ratio(); const float step = 1.f / (animation_.duration() * 60.f); - success &= - ozz::sample::DrawMotion(_renderer, motion_track_, 0.f, at, 1.f, step, - transform_, ozz::math::Quaternion::identity()); + success &= ozz::sample::DrawMotion(_renderer, motion_track_, 0.f, at, 1.f, + step, transform_); return success; }