fix warn from switch

This commit is contained in:
Filip Sykala 2021-12-14 17:49:46 +01:00
parent 03d0e36f2f
commit b900a8109b

View File

@ -2993,24 +2993,20 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
// It should be detection of volume change // It should be detection of volume change
// Not only detection of some modifiers !!! // Not only detection of some modifiers !!!
if (evt.Dragging()) { if (evt.Dragging()) {
GLGizmosManager::EType c = m_gizmos.get_current_type();
if (current_printer_technology() == ptFFF && if (current_printer_technology() == ptFFF &&
fff_print()->config().complete_objects){ fff_print()->config().complete_objects){
switch (m_gizmos.get_current_type()) { if (c == GLGizmosManager::EType::Move ||
case GLGizmosManager::EType::Move: c == GLGizmosManager::EType::Scale ||
case GLGizmosManager::EType::Scale: c == GLGizmosManager::EType::Rotate )
case GLGizmosManager::EType::Rotate:
update_sequential_clearance(); update_sequential_clearance();
}
} else { } else {
switch (m_gizmos.get_current_type()) { if (c == GLGizmosManager::EType::Move ||
case GLGizmosManager::EType::Move: c == GLGizmosManager::EType::Scale ||
case GLGizmosManager::EType::Scale: c == GLGizmosManager::EType::Rotate)
case GLGizmosManager::EType::Rotate:
show_sinking_contours(); show_sinking_contours();
} }
} }
}
return; return;
} }