From: Daid Date: Sat, 7 Jul 2012 06:30:53 +0000 (+0200) Subject: Fix for gcode preview, was showing very thin lines because of the new start code. X-Git-Tag: 12.07~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=081ac97f9588f1c7afde7eab8fea10f046d90513;p=cura.git Fix for gcode preview, was showing very thin lines because of the new start code. --- diff --git a/Cura/util/gcodeInterpreter.py b/Cura/util/gcodeInterpreter.py index ea7985f0..40f3f183 100644 --- a/Cura/util/gcodeInterpreter.py +++ b/Cura/util/gcodeInterpreter.py @@ -151,6 +151,8 @@ class gcode(object): if totalExtrusion > maxExtrusion: maxExtrusion = totalExtrusion if moveType == 'move' and oldPos.z != pos.z: + if oldPos.z > pos.z and abs(oldPos.z - pos.z) > 5.0 and pos.z < 1.0: + oldPos.z = 0.0 layerThickness = abs(oldPos.z - pos.z) if currentPath.type != moveType or currentPath.pathType != pathType: currentPath = gcodePath(moveType, pathType, layerThickness, currentPath.list[-1])