mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:29:00 +08:00
Comment checking now uses startswith
This commit is contained in:
parent
ae97e60ee4
commit
1c7c5545b5
@ -282,7 +282,9 @@ class GCodeReader(MeshReader):
|
||||
self._layer_number = layer_number
|
||||
except:
|
||||
pass
|
||||
if line[0] == ";":
|
||||
|
||||
# This line is a comment. Ignore it.
|
||||
if line.startswith(";"):
|
||||
continue
|
||||
|
||||
G = self._getInt(line, "G")
|
||||
|
Loading…
x
Reference in New Issue
Block a user