mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-21 14:09:54 +02:00
Bugfix: random failure to load presets. #600
This commit is contained in:
1 parent
927b7ce937
commit
2bf219a637
3 files changed
+12
-4
No files matched your search
@@ -930,6 +930,12 @@ sub set_ifndef {
|
||||
if !defined $self->get($opt_key);
|
||||
}
|
||||
|
||||
sub has {
|
||||
my $self = shift;
|
||||
my ($opt_key) = @_;
|
||||
return exists $self->{$opt_key};
|
||||
}
|
||||
|
||||
sub serialize {
|
||||
my $self = shift;
|
||||
my ($opt_key) = @_;
|
||||
@@ -1082,7 +1088,7 @@ sub replace_options {
|
||||
# build a regexp to match the available options
|
||||
my $options = join '|',
|
||||
grep !$Slic3r::Config::Options->{$_}{multiline},
|
||||
grep exists $self->{$_},
|
||||
grep $self->has($_),
|
||||
keys %{$Slic3r::Config::Options};
|
||||
|
||||
# use that regexp to search and replace option names with option values
|
||||
|
||||
Reference in new issue
Block a user