Commit e45d7c5f authored by Martin Heistermann's avatar Martin Heistermann
Browse files

Fix crash when currentlySelectedIndices is empty.

Not sure how i triggered this, but found the issue in a core dump.
parent 37acdd63
......@@ -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