summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qplanemesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/frontend/qplanemesh.cpp')
-rw-r--r--src/render/frontend/qplanemesh.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/frontend/qplanemesh.cpp b/src/render/frontend/qplanemesh.cpp
index 1bb06d79d..e255a6f59 100644
--- a/src/render/frontend/qplanemesh.cpp
+++ b/src/render/frontend/qplanemesh.cpp
@@ -155,7 +155,7 @@ public:
bool operator ==(const QAbstractMeshFunctor &other) const Q_DECL_OVERRIDE
{
- const PlaneMeshFunctor *otherFunctor = dynamic_cast<const PlaneMeshFunctor *>(&other);
+ const PlaneMeshFunctor *otherFunctor = functor_cast<PlaneMeshFunctor>(&other);
if (otherFunctor != Q_NULLPTR)
return (otherFunctor->m_width == m_width &&
otherFunctor->m_height == m_height &&
@@ -163,6 +163,7 @@ public:
return false;
}
+ QT3D_FUNCTOR(PlaneMeshFunctor)
private:
float m_width;
float m_height;