Fixed build when tech ENABLE_GCODE_VIEWER_STATISTICS is enabled
This commit is contained in:
parent
b69d03ad4a
commit
cc480afe9b
@ -2665,7 +2665,11 @@ void GCodeViewer::render_toolpaths()
|
|||||||
};
|
};
|
||||||
|
|
||||||
#if ENABLE_SEAMS_USING_MODELS
|
#if ENABLE_SEAMS_USING_MODELS
|
||||||
|
#if ENABLE_GCODE_VIEWER_STATISTICS
|
||||||
|
auto render_as_instanced_model = [this]
|
||||||
|
#else
|
||||||
auto render_as_instanced_model = []
|
auto render_as_instanced_model = []
|
||||||
|
#endif // ENABLE_GCODE_VIEWER_STATISTICS
|
||||||
(TBuffer& buffer, GLShaderProgram & shader) {
|
(TBuffer& buffer, GLShaderProgram & shader) {
|
||||||
for (auto& range : buffer.model.instances.render_ranges.ranges) {
|
for (auto& range : buffer.model.instances.render_ranges.ranges) {
|
||||||
if (range.vbo == 0 && range.count > 0) {
|
if (range.vbo == 0 && range.count > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user