mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 06:55:58 +08:00
fix warn from switch
This commit is contained in:
parent
03d0e36f2f
commit
b900a8109b
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user