Don't erase G92 commands

They should only be read in order to detect travel moves properly. They don't need to be modified in any way.

Fixes #4878.
This commit is contained in:
Ghostkeeper 2019-06-03 11:16:47 +02:00
parent 163b54c441
commit 24b1930b14
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -145,6 +145,7 @@ class Stretcher():
current.readStep(line) current.readStep(line)
onestep = GCodeStep(-1, in_relative_movement) onestep = GCodeStep(-1, in_relative_movement)
onestep.copyPosFrom(current) onestep.copyPosFrom(current)
onestep.comment = line
else: else:
onestep = GCodeStep(-1, in_relative_movement) onestep = GCodeStep(-1, in_relative_movement)
onestep.copyPosFrom(current) onestep.copyPosFrom(current)