From 0b0ec7be3709892113c1ae299e9547b970b45a71 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 28 Apr 2014 22:31:29 +0200 Subject: [PATCH] Fixed regression causing bad loading of multi-extruder values in GUI. #1984 --- lib/Slic3r/GUI/Tab.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm index ba887907..7ebc22e1 100644 --- a/lib/Slic3r/GUI/Tab.pm +++ b/lib/Slic3r/GUI/Tab.pm @@ -743,7 +743,7 @@ sub _build_extruder_pages { # extend options foreach my $opt_key ($self->_extruder_options) { my $values = $self->{config}->get($opt_key); - $values->[$extruder_idx] = $default_config->get_at($opt_key, 0); + $values->[$extruder_idx] //= $default_config->get_at($opt_key, 0); $self->{config}->set($opt_key, $values) or die "Unable to extend $opt_key"; }