Fixed warnings

This commit is contained in:
enricoturri1966 2022-11-30 13:04:48 +01:00
parent 93a3ee5019
commit 6533eb2a53

View File

@ -487,17 +487,6 @@ static bool feature_has_center(std::optional<Measure::SurfaceFeature> feature)
bool GLGizmoMeasure::gizmo_event(SLAGizmoEventType action, const Vec2d& mouse_position, bool shift_down, bool alt_down, bool control_down)
{
auto activate_center_selection = [this, shift_down, control_down](SLAGizmoEventType action) {
bool ret = false;
switch (action)
{
case SLAGizmoEventType::CtrlDown: { ret = shift_down && feature_has_center(m_curr_feature); break; }
case SLAGizmoEventType::ShiftDown: { ret = control_down && feature_has_center(m_curr_feature); break; }
default: { break; }
}
return ret;
};
if (action == SLAGizmoEventType::ShiftDown) {
if (m_shift_kar_filter.is_first()) {
m_mode = EMode::PointSelection;
@ -598,8 +587,6 @@ void GLGizmoMeasure::on_render()
// if (m_parent.is_mouse_dragging())
// return;
const Selection& selection = m_parent.get_selection();
update_if_needed();
const Camera& camera = wxGetApp().plater()->get_camera();