Commit 7bec4999 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix error when Z is never mentionned in GCode

parent df4bce96
...@@ -468,8 +468,8 @@ class GCode(object): ...@@ -468,8 +468,8 @@ 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 all_zs = self.all_zs.union(set([zmin]))
zmin = min(zmin, min(all_zs)) zmin = min(all_zs)
zmax = max(all_zs) zmax = max(all_zs)
self.xmin = xmin if not math.isinf(xmin) else 0 self.xmin = xmin if not math.isinf(xmin) else 0
......
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