mirror of https://github.com/vitalif/Slic3r
Revert wrong fix, applied because of bad understanding of the issue about deserialization of extruder_offset = 0x0
parent
432a87e73d
commit
c98c992b4d
|
@ -337,15 +337,12 @@ sub _trigger_options {
|
||||||
my ($opt_key, $index) = $self->_split_key($full_key);
|
my ($opt_key, $index) = $self->_split_key($full_key);
|
||||||
my $config_opt = $Slic3r::Config::Options->{$opt_key};
|
my $config_opt = $Slic3r::Config::Options->{$opt_key};
|
||||||
|
|
||||||
my $default = $config_opt->{default};
|
|
||||||
$default = $default->[$index] if defined($index) && $index <= $#$default;
|
|
||||||
|
|
||||||
$opt = {
|
$opt = {
|
||||||
opt_key => $full_key,
|
opt_key => $full_key,
|
||||||
config => 1,
|
config => 1,
|
||||||
label => ($self->full_labels && defined $config_opt->{full_label}) ? $config_opt->{full_label} : $config_opt->{label},
|
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)),
|
(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]) },
|
on_change => sub { return $self->_set_config($opt_key, $index, $_[0]) },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue