Commit 893202d6 authored by Guillaume Seguin's avatar Guillaume Seguin

Fill in some GCoder info if gcode is empty

parent dab09cb9
...@@ -197,6 +197,12 @@ class GCode(object): ...@@ -197,6 +197,12 @@ class GCode(object):
self._preprocess_layers() self._preprocess_layers()
else: else:
self.lines = [] self.lines = []
self.append_layer_id = 0
self.append_layer = Layer([])
self.all_layers = [self.append_layer]
self.layers = {}
self.layer_idxs = array('I', [])
self.line_idxs = array('I', [])
def __len__(self): def __len__(self):
return len(self.line_idxs) return len(self.line_idxs)
......
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