Commit e2c33c26 authored by Lars Kruse's avatar Lars Kruse

do a move to safety height after each DropCutter run

* the closing move to safety height was simply forgotten
* additionally a (rarely triggered) branch was broken before
parent 37a0dbdd
...@@ -80,7 +80,7 @@ class DropCutter(object): ...@@ -80,7 +80,7 @@ class DropCutter(object):
for point in points: for point in points:
if point is None: if point is None:
# exceeded maxz - the cutter has to skip this point # exceeded maxz - the cutter has to skip this point
path.append((MOVE_SAFETY)) path.append((MOVE_SAFETY, None))
continue continue
path.append((MOVE_STRAIGHT, point)) path.append((MOVE_STRAIGHT, point))
# The progress counter may return True, if cancel was requested. # The progress counter may return True, if cancel was requested.
...@@ -93,5 +93,7 @@ class DropCutter(object): ...@@ -93,5 +93,7 @@ class DropCutter(object):
current_line += 1 current_line += 1
if quit_requested: if quit_requested:
break break
if path and not (path[-1][0] == MOVE_SAFETY):
path.append((MOVE_SAFETY, None))
return path return path
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