summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/framegraphnode_p.h
diff options
context:
space:
mode:
authorJim Albamont <jim.albamont@kdab.com>2019-03-31 21:57:36 -0500
committerJim Albamont <jim.albamont@kdab.com>2019-04-16 14:13:11 +0000
commit993db3e119ed552843aac0d99e1c302eeb8c8582 (patch)
tree9c2c3923921092fad52f64a7e9b0a961e1c92e53 /src/render/framegraph/framegraphnode_p.h
parent1fcdee0f313845f4e06b294cf520ab477191774b (diff)
Fix FrameGraph node parenting
Framegraph suffers from the same problem as Entities. When they are created they pass their parent FrameGraph node, and not their parent QNode. When reparenting them we need to make sure the same thing happens otherwise you get backend FrameGraph nodes parented to non-framegraph nodes and they are just dropped from backend. Change-Id: I1b9cab2c9e869c690c4c43208e62a1044b3359a4 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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/framegraph/framegraphnode_p.h b/src/render/framegraph/framegraphnode_p.h
index 19165f56f..0efd391c7 100644
--- a/src/render/framegraph/framegraphnode_p.h
+++ b/src/render/framegraph/framegraphnode_p.h
@@ -109,8 +109,6 @@ public:
FrameGraphManager *manager() const;
void setParentId(Qt3DCore::QNodeId parentId);
- void appendChildId(Qt3DCore::QNodeId childHandle);
- void removeChildId(Qt3DCore::QNodeId childHandle);
Qt3DCore::QNodeId parentId() const;
QVector<Qt3DCore::QNodeId> childrenIds() const;
@@ -118,6 +116,8 @@ public:
FrameGraphNode *parent() const;
QVector<FrameGraphNode *> children() const;
+ void cleanup();
+
void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e) override;
protected: