X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Cura%2Futil%2FgcodeInterpreter.py;h=00f98e36961de75bda5e7efe16347148236c3870;hb=84d3d363990bcdc94678001cc5ce211df01f5135;hp=9551ee1218e4bc067f644873bb06ec12996f29ba;hpb=0886f23b7fdb21ee1dbf551414dabcda977b6126;p=cura.git 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