From c98c992b4d4187662d9b130b9e2b8fddbebb61e7 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 25 Mar 2014 01:20:46 +0100 Subject: [PATCH] Revert wrong fix, applied because of bad understanding of the issue about deserialization of extruder_offset = 0x0 --- lib/Slic3r/GUI/OptionsGroup.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Slic3r/GUI/OptionsGroup.pm b/lib/Slic3r/GUI/OptionsGroup.pm index ac26495281..b680f753a4 100644 --- a/lib/Slic3r/GUI/OptionsGroup.pm +++ b/lib/Slic3r/GUI/OptionsGroup.pm @@ -337,15 +337,12 @@ sub _trigger_options { my ($opt_key, $index) = $self->_split_key($full_key); my $config_opt = $Slic3r::Config::Options->{$opt_key}; - my $default = $config_opt->{default}; - $default = $default->[$index] if defined($index) && $index <= $#$default; - $opt = { opt_key => $full_key, config => 1, label => ($self->full_labels && defined $config_opt->{full_label}) ? $config_opt->{full_label} : $config_opt->{label}, (map { $_ => $config_opt->{$_} } qw(type tooltip sidetext width height full_width min max labels values multiline readonly)), - default => $default, + default => $self->_get_config($opt_key, $index), on_change => sub { return $self->_set_config($opt_key, $index, $_[0]) }, }; }