Commit 1ba50cb0 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix bug in gcoder when there's no layer Z available

parent c4dc0d2f
...@@ -468,7 +468,7 @@ class GCode(object): ...@@ -468,7 +468,7 @@ class GCode(object):
ymin = min(ymin, line.current_y) ymin = min(ymin, line.current_y)
ymax = max(ymax, line.current_y) ymax = max(ymax, line.current_y)
all_zs = self.all_zs.union(set([zmin])) all_zs = self.all_zs.union(set([zmin])).difference(set([None]))
zmin = min(all_zs) zmin = min(all_zs)
zmax = max(all_zs) zmax = max(all_zs)
......
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