Fix test framework detecting dE=0 as retraction

This commit is contained in:
Alessandro Ranellucci 2013-03-18 18:01:01 +01:00
parent 0b81911cff
commit f0ac1c704e

View File

@ -119,9 +119,11 @@ sub parse {
} }
$info{dist_XY} = Slic3r::Line->new([0,0], [@info{qw(dist_X dist_Y)}])->length; $info{dist_XY} = Slic3r::Line->new([0,0], [@info{qw(dist_X dist_Y)}])->length;
if (exists $args{E}) { if (exists $args{E}) {
($info{dist_E} > 0) if ($info{dist_E} > 0) {
? ($info{extruding} = 1) $info{extruding} = 1;
: ($info{retracting} = 1); } elsif ($info{dist_E} < 0) {
$info{retracting} = 1
}
} }
} }