diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2020-06-09 18:46:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 18:46:17 +0300 |
commit | 8ea6908935f4d795b83a791bf8f7adef07165b95 (patch) | |
tree | def57fcf43aa92ec299890ad05f0575bc0b4b235 /plugins/PostProcessingPlugin | |
parent | ac36aeb831c40666fc0ae862507f71447abf9619 (diff) | |
parent | a232e12cc3cb12f2f2b37cd71eda19b3b3c3cd01 (diff) |
Merge pull request #7775 from sgtnoodle/fix_stretch_feed
Fix extruder and feed rate after extruder-only moves in post stretch …
Diffstat (limited to 'plugins/PostProcessingPlugin')
-rw-r--r-- | plugins/PostProcessingPlugin/scripts/Stretch.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/PostProcessingPlugin/scripts/Stretch.py b/plugins/PostProcessingPlugin/scripts/Stretch.py index 480ba60606..e56a9f48b1 100644 --- a/plugins/PostProcessingPlugin/scripts/Stretch.py +++ b/plugins/PostProcessingPlugin/scripts/Stretch.py @@ -289,6 +289,13 @@ class Stretcher: self.layergcode = self.layergcode + sout + "\n" ipos = ipos + 1 else: + # The command is intended to be passed through unmodified via + # the comment field. In the case of an extruder only move, though, + # the extruder and potentially the feed rate are modified. + # We need to update self.outpos accordingly so that subsequent calls + # to stepToGcode() knows about the extruder and feed rate change. + self.outpos.step_e = layer_steps[i].step_e + self.outpos.step_f = layer_steps[i].step_f self.layergcode = self.layergcode + layer_steps[i].comment + "\n" def workOnSequence(self, orig_seq, modif_seq): |