Fixed UMO g-code files not being loadable

The processGcode did not take gcode + comments in the same line into account
CURA-3677
This commit is contained in:
Jaime van Kessel 2017-04-12 17:32:47 +02:00
parent 5de3b4614f
commit 558b446b4a

View file

@ -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