Commit c1f315d6 authored by Guillaume Seguin's avatar Guillaume Seguin

Add argument to gcoder.GCode.append to opt out storing

parent c6d74a15
......@@ -144,7 +144,7 @@ class GCode(object):
def __iter__(self):
return self.lines.__iter__()
def append(self, command):
def append(self, command, store = True):
command = command.strip()
if not command:
return
......@@ -152,6 +152,7 @@ class GCode(object):
self.lines.append(gline)
self._preprocess_lines([gline])
self._preprocess_extrusion([gline])
if store:
self.append_layer.append(gline)
self.layer_idxs.append(self.append_layer_id)
self.line_idxs.append(len(self.append_layer))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment