mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-15 02:41:50 +08:00
Fix test framework detecting dE=0 as retraction
This commit is contained in:
parent
0b81911cff
commit
f0ac1c704e
@ -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…
x
Reference in New Issue
Block a user