Merge branch 'master' of https://github.com/prusa3d/Slic3r into opengl_to_cpp
This commit is contained in:
commit
4a4f4db6a5
1 changed files with 2 additions and 1 deletions
|
@ -1952,12 +1952,13 @@ void _3DScene::load_gcode_preview(const Print* print, const GCodePreviewData* pr
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_generate_legend_texture(*preview_data, tool_colors);
|
_generate_legend_texture(*preview_data, tool_colors);
|
||||||
_load_shells(*print, *volumes, use_VBOs);
|
|
||||||
|
|
||||||
// removes empty volumes
|
// removes empty volumes
|
||||||
volumes->volumes.erase(std::remove_if(volumes->volumes.begin(), volumes->volumes.end(),
|
volumes->volumes.erase(std::remove_if(volumes->volumes.begin(), volumes->volumes.end(),
|
||||||
[](const GLVolume *volume) { return volume->print_zs.empty(); }),
|
[](const GLVolume *volume) { return volume->print_zs.empty(); }),
|
||||||
volumes->volumes.end());
|
volumes->volumes.end());
|
||||||
|
|
||||||
|
_load_shells(*print, *volumes, use_VBOs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue