FIX: G1 empty command
jira: none Change-Id: I399aa2d8bb820d5a6547025b66bd0dc3eeaa37c3
This commit is contained in:
parent
13a54bce1e
commit
8efb9fbb6e
|
@ -172,7 +172,7 @@ public:
|
|||
// Extrude with an explicitely provided amount of extrusion.
|
||||
WipeTowerWriter& extrude_explicit(float x, float y, float e, float f = 0.f, bool record_length = false, bool limit_volumetric_flow = true)
|
||||
{
|
||||
if (x == m_current_pos.x() && y == m_current_pos.y() && e == 0.f && (f == 0.f || f == m_current_feedrate))
|
||||
if ((std::abs(x - m_current_pos.x()) <= (float)EPSILON) && (std::abs(y - m_current_pos.y()) < (float)EPSILON) && e == 0.f && (f == 0.f || f == m_current_feedrate))
|
||||
// Neither extrusion nor a travel move.
|
||||
return *this;
|
||||
|
||||
|
|
Loading…
Reference in New Issue