From 84d3d363990bcdc94678001cc5ce211df01f5135 Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 29 Oct 2013 10:05:32 +0100 Subject: [PATCH] Fix retraction display for UltiGCode. --- Cura/util/gcodeInterpreter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2