mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Fix test framework detecting dE=0 as retraction
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user