mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Comment checking now uses startswith
This commit is contained in:
parent
ae97e60ee4
commit
1c7c5545b5
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue