Outputs (bridge) in verbose gcode if path extruded is marked as bridge. Fixes #4380

This commit is contained in:
Joseph Lenox 2018-04-14 14:52:46 -05:00
parent a46aa09755
commit 7457cfdac2

View File

@ -503,8 +503,8 @@ std::string
GCode::_extrude(ExtrusionPath path, std::string description, double speed) GCode::_extrude(ExtrusionPath path, std::string description, double speed)
{ {
path.simplify(SCALED_RESOLUTION); path.simplify(SCALED_RESOLUTION);
std::string gcode; std::string gcode;
description = path.is_bridge() ? description + " (bridge)" : description;
// go to first point of extrusion path // go to first point of extrusion path
if (!this->_last_pos_defined || !this->_last_pos.coincides_with(path.first_point())) { if (!this->_last_pos_defined || !this->_last_pos.coincides_with(path.first_point())) {