From 77db00a2eaaa3835688b7601d5713ef68d2e889c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 13 Jun 2017 15:58:12 +0200 Subject: [PATCH] Extend coordinates used for min/max calculation Both old and new position are relevant, we are extruding from one to the other. --- src/octoprint/util/gcodeInterpreter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/octoprint/util/gcodeInterpreter.py b/src/octoprint/util/gcodeInterpreter.py index 72a45380..8f2a26b5 100644 --- a/src/octoprint/util/gcodeInterpreter.py +++ b/src/octoprint/util/gcodeInterpreter.py @@ -343,7 +343,8 @@ class gcode(object): # If move with extrusion, calculate new min/max coordinates of model if e > 0.0 and move: - # extrusion and move -> relevant for print area & dimensions + # extrusion and move -> oldPos & pos relevant for print area & dimensions + self._minMax.record(oldPos) self._minMax.record(pos) totalExtrusion[currentExtruder] += e