chiark / gitweb /
Fix retraction display for UltiGCode.
[cura.git] / Cura / util / gcodeInterpreter.py
index 9551ee1218e4bc067f644873bb06ec12996f29ba..00f98e36961de75bda5e7efe16347148236c3870 100644 (file)
@@ -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