Commit 37051e58 authored by Max Lyon's avatar Max Lyon

fix bug in getFlightData of MeshObjectSelectionPlugin

parent 8feee8b0
......@@ -1021,7 +1021,7 @@ void MeshObjectSelectionPlugin::getFlightData(MeshObjectT& _mesh_object, HandleT
auto& mesh = *_mesh_object.mesh();
if (_handle.is_valid() && static_cast<size_t>(_handle.idx()) < mesh.n_vertices())
if (_handle.is_valid() && static_cast<size_t>(_handle.idx()) < mesh.template n_elements<HandleT>())
{
center = mesh.calc_centroid(_handle);
normal = 0.5 * (bbMax-bbMin).length() * mesh.calc_normal(_handle);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment