mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2025-01-11 03:45:08 +01:00
fix subsitute variables
This commit is contained in:
parent
726b30621c
commit
4da6f9700b
@ -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…
x
Reference in New Issue
Block a user