dda.c: when we have no move on the cartesian axes, we have a move on E.

But we can also have very short moves with only 1 step, without E. So include this moves also.
This commit is contained in:
Nico Tonnhofer 2017-01-02 20:34:42 +01:00
parent 2ce27fd5f7
commit c441548c37
1 changed files with 1 additions and 1 deletions

2
dda.c
View File

@ -278,7 +278,7 @@ void dda_create(DDA *dda, const TARGET *target) {
else else
distance = approx_distance_3(delta_um[X], delta_um[Y], delta_um[Z]); distance = approx_distance_3(delta_um[X], delta_um[Y], delta_um[Z]);
if (distance < 2) if (distance < 1)
distance = delta_um[E]; distance = delta_um[E];
if (DEBUG_DDA && (debug_flags & DEBUG_DDA)) if (DEBUG_DDA && (debug_flags & DEBUG_DDA))