From cc480afe9b54b3126bafb37f2afa785a9cda0303 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 2 Sep 2021 13:42:37 +0200 Subject: [PATCH] Fixed build when tech ENABLE_GCODE_VIEWER_STATISTICS is enabled --- src/slic3r/GUI/GCodeViewer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index e6e391d370..3fc6242648 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -2665,7 +2665,11 @@ void GCodeViewer::render_toolpaths() }; #if ENABLE_SEAMS_USING_MODELS +#if ENABLE_GCODE_VIEWER_STATISTICS + auto render_as_instanced_model = [this] +#else auto render_as_instanced_model = [] +#endif // ENABLE_GCODE_VIEWER_STATISTICS (TBuffer& buffer, GLShaderProgram & shader) { for (auto& range : buffer.model.instances.render_ranges.ranges) { if (range.vbo == 0 && range.count > 0) {