diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2015-07-02 00:00:52 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2015-07-02 00:00:52 +0300 |
commit | b4019bb438705978aac692b3535fa695d546fb85 (patch) | |
tree | 07e5a950849a2c1232a6a0be9eaf51e5379225ff /t | |
parent | 801f629fdc973f7f60dc5e4c2135940f89c3b959 (diff) |
Ported more Slic3r::GCode methods to XS
Diffstat (limited to 't')
-rw-r--r-- | t/shells.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/shells.t b/t/shells.t index f3fd62d14..e7eb5da13 100644 --- a/t/shells.t +++ b/t/shells.t @@ -192,7 +192,7 @@ use Slic3r::Test; push @z_steps, $info->{dist_Z} if $started_extruding && $info->{dist_Z} > 0; $travel_moves_after_first_extrusion++ - if $info->{travel} && $started_extruding && !exists $args->{Z}; + if $info->{travel} && $info->{dist_XY} > 0 && $started_extruding && !exists $args->{Z}; } elsif ($cmd eq 'M104') { $first_layer_temperature_set = 1 if $args->{S} == 205; $temperature_set = 1 if $args->{S} == 200; @@ -271,7 +271,7 @@ use Slic3r::Test; foreach my $segment (@this_layer) { # check that segment's dist_Z is proportioned to its dist_XY $all_layer_segments_have_same_slope = 1 - if abs($segment->[0]*$total_dist_XY/$config->layer_height - $segment->[1]) > 0.1; + if abs($segment->[0]*$total_dist_XY/$config->layer_height - $segment->[1]) > 0.2; } @this_layer = (); |