From: daid Date: Tue, 29 Oct 2013 09:05:32 +0000 (+0100) Subject: Fix retraction display for UltiGCode. X-Git-Tag: 13.11.2~31 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=cura.git;a=commitdiff_plain;h=84d3d363990bcdc94678001cc5ce211df01f5135 Fix retraction display for UltiGCode. --- diff --git a/Cura/util/gcodeInterpreter.py b/Cura/util/gcodeInterpreter.py index 9551ee12..00f98e36 100644 --- a/Cura/util/gcodeInterpreter.py +++ b/Cura/util/gcodeInterpreter.py @@ -187,7 +187,10 @@ class gcode(object): if P is not None: totalMoveTimeMinute += P / 60.0 / 1000.0 elif G == 10: #Retract - pass + currentPath = gcodePath('retract', pathType, layerThickness, currentPath['points'][-1]) + currentPath['extruder'] = currentExtruder + currentLayer.append(currentPath) + currentPath['points'].append(currentPath['points'][0]) elif G == 11: #Push back after retract pass elif G == 20: #Units are inches