Commit 029b1d2d authored by Guillaume Seguin's avatar Guillaume Seguin

Minor change in zmin computation in gcoder

parent 2d0f6ac2
...@@ -468,7 +468,7 @@ class GCode(object): ...@@ -468,7 +468,7 @@ class GCode(object):
ymax = max(ymax, line.current_y) ymax = max(ymax, line.current_y)
all_zs = self.all_zs all_zs = self.all_zs
zmin = min(all_zs) zmin = min(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