Added a missing forward declaration, fixed some warnings

This commit is contained in:
Lukas Matena 2021-12-14 17:08:56 +01:00
parent 2d72426971
commit 1216e593f0
3 changed files with 4 additions and 1 deletions

View File

@ -3000,6 +3000,7 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
case GLGizmosManager::EType::Scale:
case GLGizmosManager::EType::Rotate:
update_sequential_clearance();
default: break;
}
} else {
switch (m_gizmos.get_current_type()) {
@ -3007,6 +3008,7 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
case GLGizmosManager::EType::Scale:
case GLGizmosManager::EType::Rotate:
show_sinking_contours();
default: break;
}
}
}

View File

@ -178,7 +178,7 @@ bool GLGizmoBase::use_grabbers(const wxMouseEvent &mouse_event) {
m_dragging = true;
for (auto &grabber : m_grabbers) grabber.dragging = false;
if (!m_grabbers.empty() && m_hover_id < m_grabbers.size())
if (!m_grabbers.empty() && m_hover_id < int(m_grabbers.size()))
m_grabbers[m_hover_id].dragging = true;
// prevent change of hover_id during dragging

View File

@ -9,6 +9,7 @@
#include <cereal/archives/binary.hpp>
class wxWindow;
class wxMouseEvent;
namespace Slic3r {