summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/tessellation-modes
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/tessellation-modes')
-rw-r--r--examples/qt3d/tessellation-modes/tessellatedquadmesh.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/qt3d/tessellation-modes/tessellatedquadmesh.cpp b/examples/qt3d/tessellation-modes/tessellatedquadmesh.cpp
index 08a3f54b3..630fa1061 100644
--- a/examples/qt3d/tessellation-modes/tessellatedquadmesh.cpp
+++ b/examples/qt3d/tessellation-modes/tessellatedquadmesh.cpp
@@ -83,11 +83,13 @@ public:
bool operator ==(const Qt3D::QAbstractMeshFunctor &other) const
{
- const TessellatedQuadMeshFunctor *otherFunctor = dynamic_cast<const TessellatedQuadMeshFunctor *>(&other);
+ const TessellatedQuadMeshFunctor *otherFunctor = functor_cast<TessellatedQuadMeshFunctor>(&other);
if (otherFunctor != Q_NULLPTR)
return true;
return false;
}
+
+ QT3D_FUNCTOR(TessellatedQuadMeshFunctor)
};
Qt3D::QAbstractMeshFunctorPtr TessellatedQuadMesh::meshFunctor() const