mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:19:15 +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
|
self._layer_number = layer_number
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
if line[0] == ";":
|
|
||||||
|
# This line is a comment. Ignore it.
|
||||||
|
if line.startswith(";"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
G = self._getInt(line, "G")
|
G = self._getInt(line, "G")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user