summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/sortpolicy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/framegraph/sortpolicy.cpp')
-rw-r--r--src/render/framegraph/sortpolicy.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render/framegraph/sortpolicy.cpp b/src/render/framegraph/sortpolicy.cpp
index aba272d9d..f04243d6a 100644
--- a/src/render/framegraph/sortpolicy.cpp
+++ b/src/render/framegraph/sortpolicy.cpp
@@ -39,6 +39,7 @@
#include "sortpolicy_p.h"
#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DRender/private/qsortpolicy_p.h>
QT_BEGIN_NAMESPACE
@@ -81,6 +82,13 @@ QVector<QSortPolicy::SortType> SortPolicy::sortTypes() const
return m_sortTypes;
}
+void SortPolicy::initializeFromPeer(const QNodeCreatedChangeBasePtr &change)
+{
+ const auto typedChange = qSharedPointerCast<Qt3DCore::QNodeCreatedChange<QSortPolicyData>>(change);
+ const QSortPolicyData &data = typedChange->data;
+ m_sortTypes = data.sortTypes;
+}
+
} // namepace Render
} // namespace Qt3DRender