diff options
author | Christian Strømme <christian.stromme@qt.io> | 2018-03-21 13:44:30 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-03-26 14:40:53 +0000 |
commit | 7afc18df8e9e63c67ebf326948b7cbf3794e4757 (patch) | |
tree | 69dbbb252c8210f7eec6c5df3b6c70058afc8c3a /src/runtime/q3dsanimationmanager.cpp | |
parent | 542c35465834eecc8545e3d2eb8431e9b191c95f (diff) |
Always create the slide animator, even if there's no animation tracks
The slide animator should run and report time updates even if there
are no animations on the slide.
Change-Id: I5a3137a31b6964a7583be99f948d8d432722b89e
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/runtime/q3dsanimationmanager.cpp')
-rw-r--r-- | src/runtime/q3dsanimationmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/q3dsanimationmanager.cpp b/src/runtime/q3dsanimationmanager.cpp index 2fc0193..64d7536 100644 --- a/src/runtime/q3dsanimationmanager.cpp +++ b/src/runtime/q3dsanimationmanager.cpp @@ -652,6 +652,8 @@ void Q3DSAnimationManager::updateAnimations(Q3DSSlide *slide) qCDebug(lcScene, "Updating animations for slide (%s)", qPrintable(slide->name())); + buildClipAnimator(slide); + Q3DSSlide *masterSlide = static_cast<Q3DSSlide *>(slide->parent()); const bool hasAnimationData = !slide->animations().isEmpty() @@ -660,8 +662,6 @@ void Q3DSAnimationManager::updateAnimations(Q3DSSlide *slide) if (!hasAnimationData) return; - buildClipAnimator(slide); - AnimationTrackListMap<Q3DSDefaultMaterial *> defMatAnims; AnimationTrackListMap<Q3DSCustomMaterialInstance *> customMatAnims; AnimationTrackListMap<Q3DSEffectInstance *> effectAnims; |