Extend coordinates used for min/max calculation

Both old and new position are relevant, we are extruding from one to
the other.
This commit is contained in:
Gina Häußge 2017-06-13 15:58:12 +02:00
parent 6a1b162e7b
commit 77db00a2ea

View file

@ -343,7 +343,8 @@ class gcode(object):
# If move with extrusion, calculate new min/max coordinates of model # If move with extrusion, calculate new min/max coordinates of model
if e > 0.0 and move: 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) self._minMax.record(pos)
totalExtrusion[currentExtruder] += e totalExtrusion[currentExtruder] += e