mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
Fix test framework detecting dE=0 as retraction
This commit is contained in:
parent
0b81911cff
commit
f0ac1c704e
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue