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

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)

View File

@ -1515,12 +1515,12 @@ void GLCanvas3D::render()
_render_background();
_render_objects(GLVolumeCollection::ERenderType::Opaque);
if (!m_main_toolbar.is_enabled())
_render_gcode();
_render_sla_slices();
_render_selection();
if (is_looking_downward)
_render_bed(camera.get_view_matrix(), camera.get_projection_matrix(), false, true);
if (!m_main_toolbar.is_enabled())
_render_gcode();
_render_objects(GLVolumeCollection::ERenderType::Transparent);
_render_sequential_clearance();