From aef90bc735bd0df3a9737b2ff86cd22caf56b78b Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Wed, 15 Sep 2021 18:39:55 +0200 Subject: [PATCH] Fixed build on Win and one more warning --- src/slic3r/GUI/GLToolbar.cpp | 3 --- src/slic3r/GUI/Plater.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/slic3r/GUI/GLToolbar.cpp b/src/slic3r/GUI/GLToolbar.cpp index 515b6ed3a..cea68eaaa 100644 --- a/src/slic3r/GUI/GLToolbar.cpp +++ b/src/slic3r/GUI/GLToolbar.cpp @@ -1175,9 +1175,6 @@ void GLToolbar::render_arrow(const GLCanvas3D& parent, GLToolbarItem* highlighte float right = left + scaled_icons_size; unsigned int tex_id = m_arrow_texture.texture.get_id(); - // width and height of icon arrow is pointing to - float tex_width = (float)m_icons_texture.get_width(); - float tex_height = (float)m_icons_texture.get_height(); // arrow width and height float arr_tex_width = (float)m_arrow_texture.texture.get_width(); float arr_tex_height = (float)m_arrow_texture.texture.get_height(); diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 713fc04e1..e78ffe566 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3691,7 +3691,7 @@ void Plater::priv::create_simplify_notification(const std::vector& obj_i std::vector big_ids; big_ids.reserve(obj_ids.size()); std::copy_if(obj_ids.begin(), obj_ids.end(), std::back_inserter(big_ids), - [this](size_t object_id) { + [this, triangles_to_suggest_simplify](size_t object_id) { if (object_id >= model.objects.size()) return false; // out of object index ModelVolumePtrs& volumes = model.objects[object_id]->volumes; if (volumes.size() != 1) return false; // not only one volume