mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix changing flow rate in dual extrusion
This potentially set the flow rate to -1, since it was changing the flow rate to the old['flowrateTwo'] which was left at -1 since initialisation because it didn't update here.
This commit is contained in:
parent
9aa7b76dbe
commit
2eb9b111fc
1 changed files with 2 additions and 2 deletions
|
@ -407,13 +407,13 @@ class ChangeAtZ(Script):
|
||||||
if "M106" in line and state < 3: #looking for fan speed
|
if "M106" in line and state < 3: #looking for fan speed
|
||||||
old["fanSpeed"] = self.getValue(line, "S", old["fanSpeed"])
|
old["fanSpeed"] = self.getValue(line, "S", old["fanSpeed"])
|
||||||
if "M221" in line and state < 3: #looking for flow rate
|
if "M221" in line and state < 3: #looking for flow rate
|
||||||
tmp_extruder = self.getValue(line,"T",None)
|
tmp_extruder = self.getValue(line, "T", None)
|
||||||
if tmp_extruder == None: #check if extruder is specified
|
if tmp_extruder == None: #check if extruder is specified
|
||||||
old["flowrate"] = self.getValue(line, "S", old["flowrate"])
|
old["flowrate"] = self.getValue(line, "S", old["flowrate"])
|
||||||
elif tmp_extruder == 0: #first extruder
|
elif tmp_extruder == 0: #first extruder
|
||||||
old["flowrateOne"] = self.getValue(line, "S", old["flowrateOne"])
|
old["flowrateOne"] = self.getValue(line, "S", old["flowrateOne"])
|
||||||
elif tmp_extruder == 1: #second extruder
|
elif tmp_extruder == 1: #second extruder
|
||||||
old["flowrateOne"] = self.getValue(line, "S", old["flowrateOne"])
|
old["flowrateTwo"] = self.getValue(line, "S", old["flowrateTwo"])
|
||||||
if ("M84" in line or "M25" in line):
|
if ("M84" in line or "M25" in line):
|
||||||
if state>0 and ChangeProp["speed"]: #"finish" commands for UM Original and UM2
|
if state>0 and ChangeProp["speed"]: #"finish" commands for UM Original and UM2
|
||||||
modified_gcode += "M220 S100 ; speed reset to 100% at the end of print\n"
|
modified_gcode += "M220 S100 ; speed reset to 100% at the end of print\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue