Fixed rendering of shells in preview

This commit is contained in:
enricoturri1966 2023-01-23 09:21:07 +01:00
parent a3324d3e50
commit f327b805db
2 changed files with 2 additions and 6 deletions
src/slic3r/GUI

View file

@ -3182,14 +3182,10 @@ void GCodeViewer::render_shells()
if (shader == nullptr)
return;
// glsafe(::glDepthMask(GL_FALSE));
shader->start_using();
const Camera& camera = wxGetApp().plater()->get_camera();
m_shells.volumes.render(GLVolumeCollection::ERenderType::Transparent, true, camera.get_view_matrix(), camera.get_projection_matrix());
shader->stop_using();
// glsafe(::glDepthMask(GL_TRUE));
}
void GCodeViewer::render_legend(float& legend_height)