diff options
author | Lukáš Hejl <hejl.lukas@gmail.com> | 2021-05-31 08:26:38 +0300 |
---|---|---|
committer | Lukáš Hejl <hejl.lukas@gmail.com> | 2021-05-31 08:26:38 +0300 |
commit | 2438e3a891f77f452aa251b4a1093e2e270bfa26 (patch) | |
tree | befef451effc1c8fe81acca8d1a5430747cea705 /src/slic3r/GUI | |
parent | 2cbf7728bbef67858d69b7ef161ad13045d785cf (diff) |
Fixed issue that the lower half of the object was shown darker than the upper half of the object after slicing with MMU segmentation.
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r-- | src/slic3r/GUI/Gizmos/GLGizmoMmuSegmentation.cpp | 1 | ||||
-rw-r--r-- | src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Gizmos/GLGizmoMmuSegmentation.cpp b/src/slic3r/GUI/Gizmos/GLGizmoMmuSegmentation.cpp index e5acda8c6..46607a9d7 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoMmuSegmentation.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoMmuSegmentation.cpp @@ -651,6 +651,7 @@ void TriangleSelectorMmuGui::render(ImGuiWrapper *imgui) shader->stop_using(); }); shader->set_uniform("slope.actived", false); + shader->set_uniform("print_box.actived", false); for (size_t color_idx = 0; color_idx < m_iva_colors.size(); ++color_idx) { if (render_colors[color_idx]) { diff --git a/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp b/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp index adb95b045..584f8a53f 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp @@ -653,6 +653,7 @@ void TriangleSelectorGUI::render(ImGuiWrapper* imgui) shader->start_using(); ScopeGuard guard([shader]() { if (shader) shader->stop_using(); }); shader->set_uniform("slope.actived", false); + shader->set_uniform("print_box.actived", false); if (render_enf) { std::array<float, 4> color = { 0.47f, 0.47f, 1.f, 1.f }; |