diff options
Diffstat (limited to 'src/animation/backend/evaluateblendclipanimatorjob.cpp')
-rw-r--r-- | src/animation/backend/evaluateblendclipanimatorjob.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/animation/backend/evaluateblendclipanimatorjob.cpp b/src/animation/backend/evaluateblendclipanimatorjob.cpp index e0f52765f..be05f7ec0 100644 --- a/src/animation/backend/evaluateblendclipanimatorjob.cpp +++ b/src/animation/backend/evaluateblendclipanimatorjob.cpp @@ -72,9 +72,11 @@ void EvaluateBlendClipAnimatorJob::run() Q_ASSERT(blendTreeRootNode); const double duration = blendTreeRootNode->duration(); + Clock *clock = m_handler->clockManager()->lookupResource(blendedClipAnimator->clockId()); + // Calculate the phase given the blend tree duration and global time const qint64 globalTime = m_handler->simulationTime(); - const AnimatorEvaluationData animatorData = evaluationDataForAnimator(blendedClipAnimator, globalTime); + const AnimatorEvaluationData animatorData = evaluationDataForAnimator(blendedClipAnimator, clock, globalTime); int currentLoop = 0; const double phase = phaseFromGlobalTime(animatorData.globalTime, animatorData.startTime, |