mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-12-06 02:46:33 +01:00
Bugfix: crash when extending an array option by 2+ positions. #1908
This commit is contained in:
1 parent
f6e99f1467
commit
c3bb8a69db
4 files changed
+64
-33
No files matched your search
@@ -421,12 +421,15 @@ sub _set_config {
|
||||
if (defined $index) {
|
||||
my $values = $self->config->$get_m($opt_key);
|
||||
$values->[$index] = $value;
|
||||
$self->config->set($opt_key, $values);
|
||||
$self->config->set($opt_key, $values)
|
||||
or die "Failed to set $opt_key";
|
||||
} else {
|
||||
if ($serialized) {
|
||||
return $self->config->set_deserialize($opt_key, $value);
|
||||
return $self->config->set_deserialize($opt_key, $value)
|
||||
or die "Failed to set_deserialize() $opt_key";
|
||||
} else {
|
||||
return $self->config->set($opt_key, $value);
|
||||
return $self->config->set($opt_key, $value)
|
||||
or die "Failed to set $opt_key";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user