Fixed build when tech ENABLE_GCODE_VIEWER_STATISTICS is enabled

This commit is contained in:
enricoturri1966 2021-09-02 13:42:37 +02:00
parent b69d03ad4a
commit cc480afe9b

View File

@ -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) {