From 721e396edcb81ed0dd767d9162531b3848eb4e7f Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 27 Sep 2021 11:35:58 +0200 Subject: [PATCH] #7016 - Fixed GCodeProcessor::process_M132() --- src/libslic3r/GCode/GCodeProcessor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index ea46cd3a5c..5726cf9bef 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -2867,16 +2867,16 @@ void GCodeProcessor::process_M132(const GCodeReader::GCodeLine& line) // see: https://github.com/makerbot/s3g/blob/master/doc/GCodeProtocol.md // Using this command to reset the axis origin to zero helps in fixing: https://github.com/prusa3d/PrusaSlicer/issues/3082 - if (line.has_x()) + if (line.has('X')) m_origin[X] = 0.0f; - if (line.has_y()) + if (line.has('Y')) m_origin[Y] = 0.0f; - if (line.has_z()) + if (line.has('Z')) m_origin[Z] = 0.0f; - if (line.has_e()) + if (line.has('E')) m_origin[E] = 0.0f; }