Cut WIP: Fixed crash on second "Perform cut"

+ some code cleaning
This commit is contained in:
YuSanka 2022-08-12 17:59:36 +02:00
parent df8f7e1069
commit 7912613dc8
4 changed files with 21 additions and 33 deletions

View file

@ -3469,6 +3469,7 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
if (m_gizmos.get_current_type() != GLGizmosManager::SlaSupports &&
m_gizmos.get_current_type() != GLGizmosManager::FdmSupports &&
m_gizmos.get_current_type() != GLGizmosManager::Seam &&
m_gizmos.get_current_type() != GLGizmosManager::Cut &&
m_gizmos.get_current_type() != GLGizmosManager::MmuSegmentation) {
m_rectangle_selection.start_dragging(m_mouse.position, evt.ShiftDown() ? GLSelectionRectangle::EState::Select : GLSelectionRectangle::EState::Deselect);
m_dirty = true;