mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 00:05:53 +08:00
Bugfix for recent solid infill adjustment math, to take float math into account
This commit is contained in:
parent
75cbe879b7
commit
ab0300bb70
@ -37,7 +37,7 @@ sub fill_surface {
|
||||
my @paths = ();
|
||||
my $x = $bounding_box->[X1];
|
||||
my $is_line_pattern = $self->isa('Slic3r::Fill::Line');
|
||||
for (my $i = 0; $x <= $bounding_box->[X2]; $i++) {
|
||||
for (my $i = 0; $x <= $bounding_box->[X2] + scale epsilon; $i++) {
|
||||
my $vertical_line = [ [$x, $bounding_box->[Y2]], [$x, $bounding_box->[Y1]] ];
|
||||
if ($is_line_pattern && $i % 2) {
|
||||
$vertical_line->[A][X] -= $line_oscillation;
|
||||
|
Loading…
x
Reference in New Issue
Block a user