From f0ac1c704ea30eb9c9437ece018bb80764c47422 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 18 Mar 2013 18:01:01 +0100 Subject: [PATCH] Fix test framework detecting dE=0 as retraction --- lib/Slic3r/Test.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 + } } }