From a12f6ed13300a293178294edd13c0cb7652b3663 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Tue, 16 Aug 2022 16:50:31 +0800 Subject: [PATCH] ENH: refine the black color appearance when preview Change-Id: I691cae54dea6b196695cfe721299f75ce5c1e4c7 --- src/slic3r/GUI/GCodeViewer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index ed83d5f7d..d9d8ef59d 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -3064,8 +3064,10 @@ void GCodeViewer::refresh_render_paths(bool keep_sequential_current_first, bool case EViewType::ColorPrint: { if (path.cp_color_id >= static_cast(m_tools.m_tool_colors.size())) color = { 0.5f, 0.5f, 0.5f, 1.0f }; - else + else { color = m_tools.m_tool_colors[path.cp_color_id]; + color = adjust_color_for_rendering(color); + } break; } case EViewType::FilamentId: {