From 1c7c5545b58282b5f6b2a33446a9f760b9bd3f78 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 13 Mar 2017 15:52:42 +0100 Subject: [PATCH] Comment checking now uses startswith --- plugins/GCodeReader/GCodeReader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/GCodeReader/GCodeReader.py b/plugins/GCodeReader/GCodeReader.py index 16dd5c5396..dd48577731 100644 --- a/plugins/GCodeReader/GCodeReader.py +++ b/plugins/GCodeReader/GCodeReader.py @@ -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")