diff --git a/lib/Slic3r/Test.pm b/lib/Slic3r/Test.pm index 672c8af4b..0884fd308 100644 --- a/lib/Slic3r/Test.pm +++ b/lib/Slic3r/Test.pm @@ -119,9 +119,11 @@ sub parse { } $info{dist_XY} = Slic3r::Line->new([0,0], [@info{qw(dist_X dist_Y)}])->length; if (exists $args{E}) { - ($info{dist_E} > 0) - ? ($info{extruding} = 1) - : ($info{retracting} = 1); + if ($info{dist_E} > 0) { + $info{extruding} = 1; + } elsif ($info{dist_E} < 0) { + $info{retracting} = 1 + } } }