Restrict removal of g0 to clearance height to the engraving of the last base model.

This commit is contained in:
Markus Lampert
2019-02-04 11:44:03 -08:00
committed by Yorik van Havre
parent f07f996c48
commit 2e692dff2d
3 changed files with 7 additions and 2 deletions

View File

@@ -146,6 +146,9 @@ class ObjectEngrave(PathEngraveBase.ObjectOp):
self.buildpathocc(obj, shapeWires, zValues)
wires.extend(shapeWires)
self.wires = wires
# the last command is a move to clearance, which is automatically added by PathOp
if self.commandlist:
self.commandlist.pop()
except Exception as e:
PathLog.error(e)