Allow 100% retract before wipe
Signed-off-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
This commit is contained in:
parent
6f5af33c2d
commit
a6f0bd4d28
2 changed files with 6 additions and 1 deletions
|
@ -180,7 +180,9 @@ bool GCode::gcode_label_objects = true;
|
||||||
// Shorten the retraction length by the amount already retracted before wipe.
|
// Shorten the retraction length by the amount already retracted before wipe.
|
||||||
length *= (1. - gcodegen.writer().extruder()->retract_before_wipe());
|
length *= (1. - gcodegen.writer().extruder()->retract_before_wipe());
|
||||||
|
|
||||||
if (length > 0) {
|
//SoftFever: allow 100% retract before wipe
|
||||||
|
// if (length > 0)
|
||||||
|
{
|
||||||
/* Calculate how long we need to travel in order to consume the required
|
/* Calculate how long we need to travel in order to consume the required
|
||||||
amount of retraction. In other words, how far do we move in XY at wipe_speed
|
amount of retraction. In other words, how far do we move in XY at wipe_speed
|
||||||
for the time needed to consume retraction_length at retraction_speed? */
|
for the time needed to consume retraction_length at retraction_speed? */
|
||||||
|
|
|
@ -504,6 +504,9 @@ std::string GCodeWriter::extrude_to_xy(const Vec2d &point, double dE, const std:
|
||||||
{
|
{
|
||||||
m_pos(0) = point(0);
|
m_pos(0) = point(0);
|
||||||
m_pos(1) = point(1);
|
m_pos(1) = point(1);
|
||||||
|
if(std::abs(dE) <= std::numeric_limits<double>::epsilon())
|
||||||
|
force_no_extrusion = true;
|
||||||
|
|
||||||
if (!force_no_extrusion)
|
if (!force_no_extrusion)
|
||||||
m_extruder->extrude(dE);
|
m_extruder->extrude(dE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue