mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-25 06:57:58 +01:00
remove whole line for heated bed instead of making comment
This commit is contained in:
parent
0957d53b41
commit
808d585f2a
@ -133,8 +133,8 @@ export default class GCode {
|
||||
addGCode(gcode, { temperature, bedTemperature, heatedBed }) {
|
||||
gcode = gcode
|
||||
.replace(/{temperature}/gi, temperature)
|
||||
.replace(/{bedTemperature}/gi, bedTemperature)
|
||||
.replace(/{if heatedBed}/gi, heatedBed ? '' : ';');
|
||||
.replace(/{if heatedBed}.*?\n/g, str => heatedBed ? str.replace(/{if heatedBed}/g, '') : '')
|
||||
.replace(/{bedTemperature}/gi, bedTemperature);
|
||||
|
||||
this._addGCode(gcode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user