mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix cooling not working if !gcode_comments
The cooling markers were being passed into GCodeWriter::set_speed() as a comment which were being ignored if gcode_comments was false. Fixes: #3325
This commit is contained in:
@@ -273,11 +273,13 @@ GCodeWriter::toolchange(unsigned int extruder_id)
|
||||
}
|
||||
|
||||
std::string
|
||||
GCodeWriter::set_speed(double F, const std::string &comment) const
|
||||
GCodeWriter::set_speed(double F, const std::string &comment,
|
||||
const std::string &cooling_marker) const
|
||||
{
|
||||
std::ostringstream gcode;
|
||||
gcode << "G1 F" << F;
|
||||
COMMENT(comment);
|
||||
gcode << cooling_marker;
|
||||
gcode << "\n";
|
||||
return gcode.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user