mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 08:39:01 +08:00
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:
parent
5de3b4614f
commit
558b446b4a
@ -179,6 +179,7 @@ class GCodeReader(MeshReader):
|
|||||||
|
|
||||||
def _processGCode(self, G, line, position, path):
|
def _processGCode(self, G, line, position, path):
|
||||||
func = getattr(self, "_gCode%s" % G, None)
|
func = getattr(self, "_gCode%s" % G, None)
|
||||||
|
line = line.split(";", 1)[0] # Remove comments (if any)
|
||||||
if func is not None:
|
if func is not None:
|
||||||
s = line.upper().split(" ")
|
s = line.upper().split(" ")
|
||||||
x, y, z, e = None, None, None, None
|
x, y, z, e = None, None, None, None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user