summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/framegraphnode_p.h
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2016-04-02 12:03:54 +0100
committerSean Harmer <sean.harmer@kdab.com>2016-04-10 21:09:11 +0000
commit66ff055ea6f3f9d6875b90e2219b71c6313b28b4 (patch)
tree68ba86aae68ea71ef4614e86a0d0c01b881494aa /src/render/framegraph/framegraphnode_p.h
parentbd3935d53f8e40f4e6d70995bdcecc80a8685bff (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/framegraphnode_p.h')
-rw-r--r--src/render/framegraph/framegraphnode_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/render/framegraph/framegraphnode_p.h b/src/render/framegraph/framegraphnode_p.h
index e4ab5784c..3429da1ba 100644
--- a/src/render/framegraph/framegraphnode_p.h
+++ b/src/render/framegraph/framegraphnode_p.h
@@ -111,6 +111,7 @@ public:
protected:
FrameGraphNode(FrameGraphNodeType nodeType);
+ void initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change) Q_DECL_OVERRIDE;
private:
FrameGraphNodeType m_nodeType;
@@ -179,8 +180,6 @@ protected:
Backend *backend = new Backend();
backend->setFrameGraphManager(m_manager);
backend->setRenderer(m_renderer);
- backend->setEnabled(change->isNodeEnabled());
- backend->setParentId(change->parentId());
m_manager->appendNode(change->subjectId(), backend);
return backend;
}