mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 06:55:53 +08:00
$surface->thickness was erroneously defaulting to 1 mm
This commit is contained in:
parent
8117bc88a0
commit
8d2c651ef2
@ -28,7 +28,7 @@ sub new {
|
|||||||
my $self = [
|
my $self = [
|
||||||
map delete $args{$_}, qw(expolygon surface_type thickness thickness_layers bridge_angle extra_perimeters),
|
map delete $args{$_}, qw(expolygon surface_type thickness thickness_layers bridge_angle extra_perimeters),
|
||||||
];
|
];
|
||||||
$self->[$_] //= 1 for S_THICKNESS, S_THICKNESS_LAYERS;
|
$self->[S_THICKNESS_LAYERS] = 1;
|
||||||
|
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
$self;
|
$self;
|
||||||
@ -73,8 +73,8 @@ sub group {
|
|||||||
foreach my $surface (@surfaces) {
|
foreach my $surface (@surfaces) {
|
||||||
my $type = join '_',
|
my $type = join '_',
|
||||||
($params->{merge_solid} && $surface->is_solid) ? 'solid' : $surface->surface_type,
|
($params->{merge_solid} && $surface->is_solid) ? 'solid' : $surface->surface_type,
|
||||||
($surface->bridge_angle // ''),
|
$surface->bridge_angle // '',
|
||||||
$surface->thickness,
|
$surface->thickness // '',
|
||||||
$surface->thickness_layers;
|
$surface->thickness_layers;
|
||||||
$unique_types{$type} ||= [];
|
$unique_types{$type} ||= [];
|
||||||
push @{ $unique_types{$type} }, $surface;
|
push @{ $unique_types{$type} }, $surface;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user