Commit 8f556452 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'fix-crash-on-empty-selectedIndices' into 'master'

Fix crash when currentlySelectedIndices is empty.

See merge request !6
parents 37acdd63 e45d7c5f
......@@ -389,7 +389,7 @@ void OMPropertyModel<MeshT>::mouseEvent(QMouseEvent* _event)
BaseObjectData* object;
PluginFunctions::getPickedObject(node_idx, object);
if (object->id() == objectID_)
if (object->id() == objectID_ && !currentlySelectedIndices.empty())
OMPropertyVisualizer<MeshT>* viz = dynamic_cast<OMPropertyVisualizer<MeshT>*>(propertyVisualizers[currentlySelectedIndices.first().row()] );
unsigned int primitiveId = viz->getClosestPrimitiveId(face_idx, hit_point);
Supports Markdown
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