Tech ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS - Fixed update of sidebar object manipulation reset buttons after using place on face gizmo

This commit is contained in:
enricoturri1966 2021-10-21 09:26:57 +02:00
parent 978fff1d31
commit e0eac1f20c

View File

@ -715,6 +715,10 @@ bool GLGizmosManager::on_mouse(wxMouseEvent& evt)
}
else if (evt.LeftUp() && m_current == Flatten && m_gizmos[m_current]->get_hover_id() != -1) {
// to avoid to loose the selection when user clicks an the white faces of a different object while the Flatten gizmo is active
#if ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS
selection.stop_dragging();
wxGetApp().obj_manipul()->set_dirty();
#endif // ENABLE_OUT_OF_BED_DETECTION_IMPROVEMENTS
processed = true;
}
else if (evt.RightUp() && (m_current == FdmSupports || m_current == Seam || m_current == MmuSegmentation) && !m_parent.is_mouse_dragging()) {