mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 11:33:49 +01:00
fix subsitute variables
This commit is contained in:
parent
06c61a3cf6
commit
ecce63f63c
@ -46,13 +46,13 @@ export default class {
|
||||
|
||||
const heatedBedReplacement = heatedbed ? '' : ';';
|
||||
|
||||
gcode = gcode.replace(/{ printingTemp }/gi, temperature);
|
||||
gcode = gcode.replace(/{ printingBedTemp }/gi, bedTemperature);
|
||||
gcode = gcode.replace(/{ preheatTemp }/gi, heatTemperature);
|
||||
gcode = gcode.replace(/{ preheatBedTemp }/gi, heatBedTemperature);
|
||||
gcode = gcode.replace(/{ printerType }/gi, printerType);
|
||||
gcode = gcode.replace(/{ travelSpeed }/gi, travelSpeed);
|
||||
gcode = gcode.replace(/{ if heatedBed }/gi, heatedBedReplacement);
|
||||
gcode = gcode.replace(/{printingTemp}/gi, temperature);
|
||||
gcode = gcode.replace(/{printingBedTemp}/gi, bedTemperature);
|
||||
gcode = gcode.replace(/{preheatTemp}/gi, heatTemperature);
|
||||
gcode = gcode.replace(/{preheatBedTemp}/gi, heatBedTemperature);
|
||||
gcode = gcode.replace(/{printerType}/gi, printerType);
|
||||
gcode = gcode.replace(/{travelSpeed}/gi, travelSpeed);
|
||||
gcode = gcode.replace(/{if heatedBed}/gi, heatedBedReplacement);
|
||||
|
||||
return gcode;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user