diff options
author | Mike Krus <mike.krus@kdab.com> | 2019-09-18 20:00:05 +0100 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2019-09-20 08:18:21 +0100 |
commit | 577defa7b0664ca547ef6708a9e0b832670aec78 (patch) | |
tree | 6ab07bf884ba31e859b6fd12b17d6cceddd048fd /src/animation/frontend | |
parent | 780c9fda47caacc5505d37d31f63c33fcb90182f (diff) |
Enable syncing on animation aspect
Change-Id: I4333cb98d4339fa9dc02ebb27231aad748fdb3c2
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/animation/frontend')
-rw-r--r-- | src/animation/frontend/qanimationaspect.cpp | 6 | ||||
-rw-r--r-- | src/animation/frontend/qanimationaspect_p.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/animation/frontend/qanimationaspect.cpp b/src/animation/frontend/qanimationaspect.cpp index a25eb533e..b44ceaef4 100644 --- a/src/animation/frontend/qanimationaspect.cpp +++ b/src/animation/frontend/qanimationaspect.cpp @@ -69,6 +69,12 @@ QAnimationAspectPrivate::QAnimationAspectPrivate() { } +void QAnimationAspectPrivate::syncDirtyFrontEndNode(QNode *node, QBackendNode *backend, bool firstTime) const +{ + Animation::BackendNode *renderBackend = static_cast<Animation::BackendNode *>(backend); + renderBackend->syncFromFrontEnd(node, firstTime); +} + /*! \class Qt3DAnimation::QAnimationAspect \inherits Qt3DCore::QAbstractAspect diff --git a/src/animation/frontend/qanimationaspect_p.h b/src/animation/frontend/qanimationaspect_p.h index 2ecc8fdb8..203acd386 100644 --- a/src/animation/frontend/qanimationaspect_p.h +++ b/src/animation/frontend/qanimationaspect_p.h @@ -70,6 +70,8 @@ public: Q_DECLARE_PUBLIC(QAnimationAspect) + void syncDirtyFrontEndNode(Qt3DCore::QNode *node, Qt3DCore::QBackendNode *backend, bool firstTime) const override; + QScopedPointer<Animation::Handler> m_handler; }; |