Measuring - Gizmo measure - Do not close the gizmo when the user clicks outside of any volume

This commit is contained in:
enricoturri1966 2022-10-25 12:12:33 +02:00
parent 402fe908c1
commit 2f130ca6e1

View File

@ -325,6 +325,9 @@ bool GLGizmoMeasure::on_mouse(const wxMouseEvent &mouse_event)
m_mouse_left_down = false;
return true;
}
if (m_hover_id == -1 && !m_parent.is_mouse_dragging())
// avoid closing the gizmo if the user clicks outside of any volume
return true;
}
else if (mouse_event.RightDown() && mouse_event.CmdDown()) {
m_selected_features.reset();