From 02746cd0f50edb9f64826ade678b33ce21b8c863 Mon Sep 17 00:00:00 2001 From: Ian Bassi Date: Wed, 23 Sep 2026 20:38:04 -0300 Subject: [PATCH] Disable SSAO for grid (#15865) Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com> --- src/slic3r/GUI/PartPlate.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/PartPlate.cpp b/src/slic3r/GUI/PartPlate.cpp index 3493506228..e90b21e0ff 100644 --- a/src/slic3r/GUI/PartPlate.cpp +++ b/src/slic3r/GUI/PartPlate.cpp @@ -3555,8 +3555,11 @@ void PartPlate::render(const Transform3d& view_matrix, const Transform3d& projec shader->stop_using(); } - if (wxGetApp().show_plate_gridlines() && show_grid) + if (wxGetApp().show_plate_gridlines() && show_grid) { + glsafe(::glDepthMask(bottom ? GL_TRUE : GL_FALSE)); render_grid(bottom); + glsafe(::glDepthMask(GL_TRUE)); + } if (!hide_chrome && !bottom && m_selected && !force_background_color) { if (m_partplate_list)