diff options
author | Mike Krus <mike.krus@kdab.com> | 2019-08-14 11:50:10 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2019-08-29 08:32:29 +0200 |
commit | c1b1bbbb72a9d0c11d92c8cdb998c52d515932da (patch) | |
tree | ea126554b3dde2505deb10b1a5b381fd82384b13 /src/core/aspects/qaspectmanager_p.h | |
parent | fa801839d384e9d6eea09350433e354cf753c267 (diff) |
Use sync method when initializing new backend nodes
If the node type supports syncing, use that rather than the creation
message. The message is still needed since that is passed to the
instantiation functor (none of qt3d's classes appear to use anything
but the node id, but can't be sure no other classes do, and can't add
other virtual method without breaking BC).
Change-Id: Id99f448070b8722a7809b968798772c9eb3c8397
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src/core/aspects/qaspectmanager_p.h')
-rw-r--r-- | src/core/aspects/qaspectmanager_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/aspects/qaspectmanager_p.h b/src/core/aspects/qaspectmanager_p.h index d654f7b5a..e984244ff 100644 --- a/src/core/aspects/qaspectmanager_p.h +++ b/src/core/aspects/qaspectmanager_p.h @@ -94,7 +94,8 @@ public Q_SLOTS: void shutdown(); void processFrame(); - void setRootEntity(Qt3DCore::QEntity *root, const QVector<Qt3DCore::QNodeCreatedChangeBasePtr> &changes); + void setRootEntity(Qt3DCore::QEntity *root, const QVector<QNode *> &nodes); + void addNodes(const QVector<QNode *> &nodes); void registerAspect(Qt3DCore::QAbstractAspect *aspect); void unregisterAspect(Qt3DCore::QAbstractAspect *aspect); |