From 946bbd285a54ecd389a7f2ef859ca4f82ce9808b Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 23 Nov 2022 09:10:56 +0100 Subject: [PATCH] Fixed warnings --- src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp b/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp index fa8240f8d..89e6b63ef 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp @@ -751,7 +751,7 @@ void GLGizmoMeasure::on_render() shader->set_uniform("view_normal_matrix", view_normal_matrix); }; - auto set_emission_uniform = [this, shader](const ColorRGBA& color, bool hover) { + auto set_emission_uniform = [shader](const ColorRGBA& color, bool hover) { shader->set_uniform("emission_factor", (color == GLVolume::SELECTED_COLOR) ? 0.0f : hover ? 0.5f : 0.25f); }; @@ -873,7 +873,7 @@ void GLGizmoMeasure::on_render() SELECTED_1ST_COLOR : SELECTED_2ND_COLOR; }; - auto hovering_color = [this, hover_selection_color, &selection]() { + auto hovering_color = [this, hover_selection_color]() { return (m_mode == EMode::PointSelection) ? GLVolume::SELECTED_COLOR : hover_selection_color(); };