- Fixed color not correctly shown after slice

The bug was introduced with 148f4fe766 which is now replaced by this commit
This commit is contained in:
enricoturri1966 2020-11-23 17:15:22 +01:00
parent 95d65f9f30
commit 92953acc57
2 changed files with 6 additions and 7 deletions
src/slic3r/GUI

View file

@ -373,6 +373,10 @@ void GCodeViewer::refresh(const GCodeProcessor::Result& gcode_result, const std:
// update tool colors
m_tool_colors = decode_colors(str_tool_colors);
// ensure at least one (default) color is defined
if (m_tool_colors.empty())
m_tool_colors.push_back(decode_color("#FF8000"));
// update ranges for coloring / legend
m_extrusions.reset_ranges();
for (size_t i = 0; i < m_moves_count; ++i) {