Added a missing forward declaration, fixed some warnings
This commit is contained in:
parent
2d72426971
commit
1216e593f0
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <cereal/archives/binary.hpp>
|
||||
|
||||
class wxWindow;
|
||||
class wxMouseEvent;
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user