diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2016-04-02 12:03:54 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-04-10 21:09:11 +0000 |
commit | 66ff055ea6f3f9d6875b90e2219b71c6313b28b4 (patch) | |
tree | 68ba86aae68ea71ef4614e86a0d0c01b881494aa /src/render/framegraph/cameraselectornode.cpp | |
parent | bd3935d53f8e40f4e6d70995bdcecc80a8685bff (diff) |
Do enabled state and parent/child relationship init in framegraph base
Move this out of the creation functor as the peerId is not set at this
point which breaks the setParentId() function. Move this to the
initializeFromPeer() function and have each FrameGraphNode type call
the base class implementation to set the basic stuff up.
With this change, the main loop now runs through using the QT3D_NO_CLONE
env var. However, it does not render again, yet.
Change-Id: Ied12deb4732b5c103e647cc4cfea935114ea31ca
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/framegraph/cameraselectornode.cpp')
-rw-r--r-- | src/render/framegraph/cameraselectornode.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/framegraph/cameraselectornode.cpp b/src/render/framegraph/cameraselectornode.cpp index f95fe61d4..d16dbc4cd 100644 --- a/src/render/framegraph/cameraselectornode.cpp +++ b/src/render/framegraph/cameraselectornode.cpp @@ -68,6 +68,7 @@ void CameraSelector::updateFromPeer(Qt3DCore::QNode *peer) void CameraSelector::initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change) { + FrameGraphNode::initializeFromPeer(change); const auto typedChange = qSharedPointerCast<Qt3DCore::QNodeCreatedChange<QCameraSelectorData>>(change); const auto &data = typedChange->data; m_cameraUuid = data.cameraId; |