mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix extruder and feed rate after extruder-only moves in post stretch script (issue 7755)
This commit is contained in:
parent
d499c6fdfe
commit
a232e12cc3
1 changed files with 7 additions and 0 deletions
|
@ -289,6 +289,13 @@ class Stretcher:
|
||||||
self.layergcode = self.layergcode + sout + "\n"
|
self.layergcode = self.layergcode + sout + "\n"
|
||||||
ipos = ipos + 1
|
ipos = ipos + 1
|
||||||
else:
|
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"
|
self.layergcode = self.layergcode + layer_steps[i].comment + "\n"
|
||||||
|
|
||||||
def workOnSequence(self, orig_seq, modif_seq):
|
def workOnSequence(self, orig_seq, modif_seq):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue