mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Bugfix: fatal error when using concentric infill
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user