From 558b446b4a44ec82102788a68aeec2b1315f4064 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 12 Apr 2017 17:32:47 +0200 Subject: [PATCH] Fixed UMO g-code files not being loadable The processGcode did not take gcode + comments in the same line into account CURA-3677 --- plugins/GCodeReader/GCodeReader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/GCodeReader/GCodeReader.py b/plugins/GCodeReader/GCodeReader.py index 1edce8a753..c59e6dce72 100755 --- a/plugins/GCodeReader/GCodeReader.py +++ b/plugins/GCodeReader/GCodeReader.py @@ -179,6 +179,7 @@ class GCodeReader(MeshReader): def _processGCode(self, G, line, position, path): func = getattr(self, "_gCode%s" % G, None) + line = line.split(";", 1)[0] # Remove comments (if any) if func is not None: s = line.upper().split(" ") x, y, z, e = None, None, None, None