summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/findrunningclipanimatorsjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation/backend/findrunningclipanimatorsjob.cpp')
-rw-r--r--src/animation/backend/findrunningclipanimatorsjob.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/animation/backend/findrunningclipanimatorsjob.cpp b/src/animation/backend/findrunningclipanimatorsjob.cpp
index 3b2d9d4f5..80739a02b 100644
--- a/src/animation/backend/findrunningclipanimatorsjob.cpp
+++ b/src/animation/backend/findrunningclipanimatorsjob.cpp
@@ -39,6 +39,7 @@
#include <Qt3DAnimation/private/managers_p.h>
#include <Qt3DAnimation/private/animationlogging_p.h>
#include <Qt3DAnimation/private/animationutils_p.h>
+#include <Qt3DAnimation/private/job_common_p.h>
QT_BEGIN_NAMESPACE
@@ -48,6 +49,7 @@ namespace Animation {
FindRunningClipAnimatorsJob::FindRunningClipAnimatorsJob()
: Qt3DCore::QAspectJob()
{
+ SET_JOB_RUN_STAT_TYPE(this, JobTypes::FindRunningClipAnimator, 0);
}
void FindRunningClipAnimatorsJob::setDirtyClipAnimators(const QVector<HClipAnimator> &clipAnimatorHandles)
@@ -71,10 +73,10 @@ void FindRunningClipAnimatorsJob::run()
// TODO: Should be possible to parallelise this with the fcurve evaluation as
// sending the property change events doesn't happen until after evaluation
if (canRun) {
- const AnimationClip *clip = m_handler->animationClipManager()->lookupResource(clipAnimator->clipId());
+ const AnimationClip *clip = m_handler->animationClipLoaderManager()->lookupResource(clipAnimator->clipId());
const ChannelMapper *mapper = m_handler->channelMapperManager()->lookupResource(clipAnimator->mapperId());
Q_ASSERT(clip && mapper);
- const QVector<AnimationUtils::MappingData> mappingData = AnimationUtils::buildPropertyMappings(m_handler, clip, mapper);
+ const QVector<MappingData> mappingData = buildPropertyMappings(m_handler, clip, mapper);
clipAnimator->setMappingData(mappingData);
}
}