From d5f33f9c7cfc27b6d3cc77773e53c0dd30791588 Mon Sep 17 00:00:00 2001 From: RF47 <162915171+RF47@users.noreply.github.com> Date: Sun, 17 May 2026 21:05:36 -0300 Subject: [PATCH] clean 1 --- src/slic3r/GUI/GCodeViewer.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 23f889337d..01635e85b8 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -6,7 +6,6 @@ #include "libslic3r/Print.hpp" #include "libslic3r/Geometry.hpp" #include "libslic3r/Model.hpp" -#include "libslic3r/AppConfig.hpp" #include "libslic3r/Utils.hpp" #include "libslic3r/LocalesUtils.hpp" #include "libslic3r/PresetBundle.hpp" @@ -223,11 +222,7 @@ void GCodeViewer::SequentialView::Marker::render(int canvas_width, int canvas_he if (!m_visible) return; - const bool reflections = wxGetApp().app_config != nullptr && - wxGetApp().app_config->get(SETTING_OPENGL_SHADING_MODEL) == "phong"; - GLShaderProgram* shader = wxGetApp().get_shader(reflections ? "phong" : "gouraud_light"); - if (shader == nullptr) - shader = wxGetApp().get_shader("gouraud_light"); + GLShaderProgram* shader = wxGetApp().get_shader("gouraud_light"); if (shader == nullptr) return; @@ -2419,11 +2414,7 @@ void GCodeViewer::render_shells(int canvas_width, int canvas_height) //if (!m_shells.visible || m_shells.volumes.empty()) return; - const bool reflections = wxGetApp().app_config != nullptr && - wxGetApp().app_config->get(SETTING_OPENGL_SHADING_MODEL) == "phong"; - GLShaderProgram* shader = wxGetApp().get_shader(reflections ? "phong" : "gouraud_light"); - if (shader == nullptr) - shader = wxGetApp().get_shader("gouraud_light"); + GLShaderProgram* shader = wxGetApp().get_shader("gouraud_light"); if (shader == nullptr) return;