mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -06:00
Bugfix: fatal error when using concentric infill
This commit is contained in:
parent
e6bce05d9b
commit
8e06a4f6f2
2 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,7 @@ package Slic3r;
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
our $VERSION = "0.5.6";
|
our $VERSION = "0.5.7-beta";
|
||||||
|
|
||||||
our $debug = 0;
|
our $debug = 0;
|
||||||
sub debugf {
|
sub debugf {
|
||||||
|
|
|
@ -14,6 +14,9 @@ sub fill_surface {
|
||||||
|
|
||||||
my $scaled_flow_width = scale $params{flow_width};
|
my $scaled_flow_width = scale $params{flow_width};
|
||||||
my $distance = $scaled_flow_width / $params{density};
|
my $distance = $scaled_flow_width / $params{density};
|
||||||
|
# TODO: adjust distance and flow width for solid surfaces
|
||||||
|
# using the same logic as Rectilinear infill
|
||||||
|
# (factor it out to parent class)
|
||||||
|
|
||||||
my @contour_loops = ();
|
my @contour_loops = ();
|
||||||
my @hole_loops = ();
|
my @hole_loops = ();
|
||||||
|
@ -49,7 +52,7 @@ sub fill_surface {
|
||||||
push @paths, $path->p;
|
push @paths, $path->p;
|
||||||
}
|
}
|
||||||
|
|
||||||
return @paths;
|
return {}, @paths;
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue