#10259 - Preview/GCodeViewer: Ignore purge line in 'Width' display when Custom extrusion paths are set to invisible

This commit is contained in:
enricoturri1966 2023-04-05 09:23:19 +02:00
parent eef077b6ff
commit 439e9bc7e7

View File

@ -836,6 +836,7 @@ void GCodeViewer::refresh(const GCodeProcessorResult& gcode_result, const std::v
case EMoveType::Extrude:
{
m_extrusions.ranges.height.update_from(round_to_bin(curr.height));
if (curr.extrusion_role != GCodeExtrusionRole::Custom || is_visible(GCodeExtrusionRole::Custom))
m_extrusions.ranges.width.update_from(round_to_bin(curr.width));
m_extrusions.ranges.fan_speed.update_from(curr.fan_speed);
m_extrusions.ranges.temperature.update_from(curr.temperature);