mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-21 21:27:56 +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 }) {
|
addGCode(gcode, { temperature, bedTemperature, heatedBed }) {
|
||||||
gcode = gcode
|
gcode = gcode
|
||||||
.replace(/{temperature}/gi, temperature)
|
.replace(/{temperature}/gi, temperature)
|
||||||
.replace(/{bedTemperature}/gi, bedTemperature)
|
.replace(/{if heatedBed}.*?\n/g, str => heatedBed ? str.replace(/{if heatedBed}/g, '') : '')
|
||||||
.replace(/{if heatedBed}/gi, heatedBed ? '' : ';');
|
.replace(/{bedTemperature}/gi, bedTemperature);
|
||||||
|
|
||||||
this._addGCode(gcode);
|
this._addGCode(gcode);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user