Comment checking now uses startswith

This commit is contained in:
Jaime van Kessel 2017-03-13 15:52:42 +01:00
parent ae97e60ee4
commit 1c7c5545b5

View file

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