Suppor of "No extrusion" firmware flavor by not emitting the E axis.

Fix of https://github.com/prusa3d/PrusaSlicer/issues/6023
The fix is partial: No extrusions are shown by the final G-code preview.
This commit is contained in:
Vojtech Bubnik 2021-08-09 17:37:25 +02:00
parent d6370a16fa
commit 9f9cbb46f9
5 changed files with 32 additions and 13 deletions
src/libslic3r

View file

@ -2714,7 +2714,9 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
// calculate extrusion length per distance unit
double e_per_mm = m_writer.extruder()->e_per_mm3() * path.mm3_per_mm;
if (m_writer.extrusion_axis().empty()) e_per_mm = 0;
if (m_writer.extrusion_axis().empty())
// gcfNoExtrusion
e_per_mm = 0;
// set speed
if (speed == -1) {