Fix of a G-code comment. Fixes
Incorrect filament profile being used during purge - always set to PLA. #1691
This commit is contained in:
parent
7bfc60e805
commit
49bb90523a
2 changed files with 19 additions and 16 deletions
src/libslic3r/GCode
|
@ -381,22 +381,7 @@ public:
|
||||||
Writer& comment_material(WipeTowerPrusaMM::material_type material)
|
Writer& comment_material(WipeTowerPrusaMM::material_type material)
|
||||||
{
|
{
|
||||||
m_gcode += "; material : ";
|
m_gcode += "; material : ";
|
||||||
switch (material)
|
m_gcode += WipeTowerPrusaMM::to_string(material) + "\n";
|
||||||
{
|
|
||||||
case WipeTowerPrusaMM::PVA:
|
|
||||||
m_gcode += "#8 (PVA)";
|
|
||||||
break;
|
|
||||||
case WipeTowerPrusaMM::SCAFF:
|
|
||||||
m_gcode += "#5 (Scaffold)";
|
|
||||||
break;
|
|
||||||
case WipeTowerPrusaMM::FLEX:
|
|
||||||
m_gcode += "#4 (Flex)";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
m_gcode += "DEFAULT (PLA)";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
m_gcode += "\n";
|
|
||||||
return *this;
|
return *this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -487,6 +472,23 @@ WipeTowerPrusaMM::material_type WipeTowerPrusaMM::parse_material(const char *nam
|
||||||
return INVALID;
|
return INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string WipeTowerPrusaMM::to_string(material_type material)
|
||||||
|
{
|
||||||
|
switch (material) {
|
||||||
|
case PLA: return "PLA";
|
||||||
|
case ABS: return "ABS";
|
||||||
|
case PET: return "PET";
|
||||||
|
case HIPS: return "HIPS";
|
||||||
|
case FLEX: return "FLEX";
|
||||||
|
case SCAFF: return "SCAFF";
|
||||||
|
case EDGE: return "EDGE";
|
||||||
|
case NGEN: return "NGEN";
|
||||||
|
case PVA: return "PVA";
|
||||||
|
case INVALID:
|
||||||
|
default: return "INVALID";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Returns gcode to prime the nozzles at the front edge of the print bed.
|
// Returns gcode to prime the nozzles at the front edge of the print bed.
|
||||||
WipeTower::ToolChangeResult WipeTowerPrusaMM::prime(
|
WipeTower::ToolChangeResult WipeTowerPrusaMM::prime(
|
||||||
// print_z of the first layer.
|
// print_z of the first layer.
|
||||||
|
|
|
@ -38,6 +38,7 @@ public:
|
||||||
|
|
||||||
// Parse material name into material_type.
|
// Parse material name into material_type.
|
||||||
static material_type parse_material(const char *name);
|
static material_type parse_material(const char *name);
|
||||||
|
static std::string to_string(material_type material);
|
||||||
|
|
||||||
// x -- x coordinates of wipe tower in mm ( left bottom corner )
|
// x -- x coordinates of wipe tower in mm ( left bottom corner )
|
||||||
// y -- y coordinates of wipe tower in mm ( left bottom corner )
|
// y -- y coordinates of wipe tower in mm ( left bottom corner )
|
||||||
|
|
Loading…
Add table
Reference in a new issue