From 1130778d5e29d9bdb071b050b7e0b8db995e7c59 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Fri, 2 Oct 2020 09:14:43 +0200 Subject: [PATCH] Small fix in debug tech ENABLE_GCODE_VIEWER_DATA_CHECKING --- src/libslic3r/GCode/GCodeProcessor.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/libslic3r/GCode/GCodeProcessor.hpp b/src/libslic3r/GCode/GCodeProcessor.hpp index b31591ca8..a0cf5d6e5 100644 --- a/src/libslic3r/GCode/GCodeProcessor.hpp +++ b/src/libslic3r/GCode/GCodeProcessor.hpp @@ -305,10 +305,12 @@ namespace Slic3r { {} void update(float value, ExtrusionRole role) { - ++count; - if (last_tag_value != 0.0f) { - if (std::abs(value - last_tag_value) / last_tag_value > threshold) - errors.push_back({ value, last_tag_value, role }); + if (role != erCustom) { + ++count; + if (last_tag_value != 0.0f) { + if (std::abs(value - last_tag_value) / last_tag_value > threshold) + errors.push_back({ value, last_tag_value, role }); + } } }