summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-09-09 16:12:23 +0200
committerPaul Lemire <paul.lemire@kdab.com>2016-12-13 15:33:56 +0000
commita54e6b6b20241b3808fbdb809f1a6f1fd1449671 (patch)
tree500e9e0f23f72f75b5dd7ea24cc021496fea9742
parentd2da87d520400c479c4f6950d3fcc31077027ed9 (diff)
FrameGraphNode: setParentID to the parentFGNodeId
Change-Id: I8110117c0aafa09cc8030ec4f0ab5cdad94f5eb2 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r--src/render/framegraph/framegraphnode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/framegraph/framegraphnode.cpp b/src/render/framegraph/framegraphnode.cpp
index dcf3cfacc..f2ce1a50a 100644
--- a/src/render/framegraph/framegraphnode.cpp
+++ b/src/render/framegraph/framegraphnode.cpp
@@ -42,6 +42,7 @@
#include <Qt3DRender/private/nodemanagers_p.h>
#include <Qt3DCore/qpropertynoderemovedchange.h>
#include <Qt3DCore/qpropertynodeaddedchange.h>
+#include <Qt3DRender/qframegraphnodecreatedchange.h>
QT_BEGIN_NAMESPACE
@@ -69,7 +70,8 @@ FrameGraphNode::~FrameGraphNode()
void FrameGraphNode::initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change)
{
// Set up the parent child relationship and enabled state
- setParentId(change->parentId());
+ const auto creationChange = qSharedPointerCast<QFrameGraphNodeCreatedChangeBase>(change);
+ setParentId(creationChange->parentFrameGraphNodeId());
}
void FrameGraphNode::setFrameGraphManager(FrameGraphManager *manager)