mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 15:25:58 +08:00
Bugfix in flowrate.pl: negative coordinates were not parsed
This commit is contained in:
parent
ff42ad5512
commit
1ee70c33d5
@ -16,7 +16,7 @@ while (<>) {
|
||||
if (/^G1.*? F([0-9.]+)/) {
|
||||
$F = $1;
|
||||
}
|
||||
if (/^G1 X([0-9.]+) Y([0-9.]+).*? E([0-9.]+)/) {
|
||||
if (/^G1 X([0-9.-]+) Y([0-9.-]+).*? E([0-9.-]+)/) {
|
||||
my ($x, $y, $e) = ($1, $2, $3);
|
||||
my $e_length = $e - $E;
|
||||
if ($e_length > 0 && defined $X && defined $Y) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user