#5236 - 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 committed 2020-11-23 17:15:22 +01:00
1 parent 95d65f9f30
commit 92953acc57
2 files changed
+6 -7

No files matched your search

+4
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) {