summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qmesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/frontend/qmesh.cpp')
-rw-r--r--src/render/frontend/qmesh.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/frontend/qmesh.cpp b/src/render/frontend/qmesh.cpp
index 882fdb2a1..59ef25bff 100644
--- a/src/render/frontend/qmesh.cpp
+++ b/src/render/frontend/qmesh.cpp
@@ -55,6 +55,7 @@ public :
MeshFunctor(const QUrl &sourcePath);
QMeshDataPtr operator()() Q_DECL_OVERRIDE;
bool operator ==(const QAbstractMeshFunctor &other) const Q_DECL_OVERRIDE;
+ QT3D_FUNCTOR(MeshFunctor)
private:
QUrl m_sourcePath;
@@ -147,7 +148,7 @@ QMeshDataPtr MeshFunctor::operator()()
bool MeshFunctor::operator ==(const QAbstractMeshFunctor &other) const
{
- const MeshFunctor *otherFunctor = dynamic_cast<const MeshFunctor *>(&other);
+ const MeshFunctor *otherFunctor = functor_cast<MeshFunctor>(&other);
if (otherFunctor != Q_NULLPTR)
return (otherFunctor->m_sourcePath == m_sourcePath);
return false;