summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qcuboidmesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/frontend/qcuboidmesh.cpp')
-rw-r--r--src/render/frontend/qcuboidmesh.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/frontend/qcuboidmesh.cpp b/src/render/frontend/qcuboidmesh.cpp
index 665eafd7a..d8fb1175e 100644
--- a/src/render/frontend/qcuboidmesh.cpp
+++ b/src/render/frontend/qcuboidmesh.cpp
@@ -220,7 +220,7 @@ public:
bool operator ==(const QAbstractMeshFunctor &other) const Q_DECL_OVERRIDE
{
- const CuboidMeshFunctor *otherFunctor = dynamic_cast<const CuboidMeshFunctor *>(&other);
+ const CuboidMeshFunctor *otherFunctor = functor_cast<CuboidMeshFunctor>(&other);
if (otherFunctor != Q_NULLPTR)
return (otherFunctor->m_xExtent == m_xExtent &&
otherFunctor->m_yExtent == m_yExtent &&
@@ -231,6 +231,8 @@ public:
return false;
}
+ QT3D_FUNCTOR(CuboidMeshFunctor)
+
private:
// Dimensions
float m_xExtent;