Commit c2b55bcb authored by Guillaume Seguin's avatar Guillaume Seguin

Fix traceback when loading file and using NoViz

parent 52583643
...@@ -27,6 +27,13 @@ class NoViz(object): ...@@ -27,6 +27,13 @@ class NoViz(object):
def clear(self, *a): def clear(self, *a):
pass pass
def addfile_perlayer(self, gcode, showall = False):
layer_idx = 0
while layer_idx < len(gcode.all_layers):
yield layer_idx
layer_idx += 1
yield None
def addfile(self, *a, **kw): def addfile(self, *a, **kw):
pass pass
......
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