mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH: refine the black color appearance when preview
Change-Id: I691cae54dea6b196695cfe721299f75ce5c1e4c7
This commit is contained in:
parent
cc9463c017
commit
a12f6ed133
1 changed files with 3 additions and 1 deletions
|
@ -3064,8 +3064,10 @@ void GCodeViewer::refresh_render_paths(bool keep_sequential_current_first, bool
|
||||||
case EViewType::ColorPrint: {
|
case EViewType::ColorPrint: {
|
||||||
if (path.cp_color_id >= static_cast<unsigned char>(m_tools.m_tool_colors.size()))
|
if (path.cp_color_id >= static_cast<unsigned char>(m_tools.m_tool_colors.size()))
|
||||||
color = { 0.5f, 0.5f, 0.5f, 1.0f };
|
color = { 0.5f, 0.5f, 0.5f, 1.0f };
|
||||||
else
|
else {
|
||||||
color = m_tools.m_tool_colors[path.cp_color_id];
|
color = m_tools.m_tool_colors[path.cp_color_id];
|
||||||
|
color = adjust_color_for_rendering(color);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case EViewType::FilamentId: {
|
case EViewType::FilamentId: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue