From 442fb0e82a6cc442e06dd3117916960d19a7e746 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 17 Mar 2013 14:58:10 +0100 Subject: [PATCH] $surface->thickness was erroneously defaulting to 1 mm --- lib/Slic3r/Surface.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Slic3r/Surface.pm b/lib/Slic3r/Surface.pm index 139daf5f5..0b0ad1465 100644 --- a/lib/Slic3r/Surface.pm +++ b/lib/Slic3r/Surface.pm @@ -27,7 +27,7 @@ sub new { my $self = [ 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; $self; @@ -72,8 +72,8 @@ sub group { foreach my $surface (@surfaces) { my $type = join '_', ($params->{merge_solid} && $surface->is_solid) ? 'solid' : $surface->surface_type, - ($surface->bridge_angle // ''), - $surface->thickness, + $surface->bridge_angle // '', + $surface->thickness // '', $surface->thickness_layers; $unique_types{$type} ||= []; push @{ $unique_types{$type} }, $surface;