60 return; |
60 return; |
61 |
61 |
62 m_drawedVerts << pos; |
62 m_drawedVerts << pos; |
63 } |
63 } |
64 |
64 |
65 virtual void AbstractDrawMode::mouseReleased (MouseEventData const& data) |
65 bool AbstractDrawMode::mouseReleased (MouseEventData const& data) |
66 { |
66 { |
|
67 if (Super::mouseReleased (data)) |
|
68 return true; |
|
69 |
67 if (data.releasedButtons & Qt::MidButton) |
70 if (data.releasedButtons & Qt::MidButton) |
68 { |
71 { |
69 // Find the closest vertex to our cursor |
72 // Find the closest vertex to our cursor |
70 double minimumDistance = 1024.0; |
73 double minimumDistance = 1024.0; |
71 const Vertex* closest = null; |
74 const Vertex* closest = null; |