mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Corrected float/int mixups and allow catching temperature before the layers start. CURA-5491
This commit is contained in:
parent
debe142c18
commit
7058ddbb66
1 changed files with 6 additions and 5 deletions
|
@ -159,19 +159,20 @@ class PauseAtHeight(Script):
|
|||
# Count nbr of negative layers (raft)
|
||||
elif ";LAYER:-" in line:
|
||||
nbr_negative_layers += 1
|
||||
if not layers_started:
|
||||
continue
|
||||
|
||||
#Track the latest printing temperature in order to resume at the correct temperature.
|
||||
if line.startswith("T"):
|
||||
current_t = self.getValue(line, "T")
|
||||
current_t = int(self.getValue(line, "T"))
|
||||
m = self.getValue(line, "M")
|
||||
if m is not None and (m == 104 or m == 109) and self.getValue(line, "S") is not None:
|
||||
if m is not None and (int(m) == 104 or int(m) == 109) and self.getValue(line, "S") is not None:
|
||||
extruder = current_t
|
||||
if self.getValue(line, "T") is not None:
|
||||
extruder = self.getValue(line, "T")
|
||||
extruder = int(self.getValue(line, "T"))
|
||||
target_temperature[extruder] = self.getValue(line, "S")
|
||||
|
||||
if not layers_started:
|
||||
continue
|
||||
|
||||
# If a Z instruction is in the line, read the current Z
|
||||
if self.getValue(line, "Z") is not None:
|
||||
current_z = self.getValue(line, "Z")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue