mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
Fixed a regression bug of handling the obsolete config parameters,
causing crashes.
This commit is contained in:
parent
6aff27f3ab
commit
830da1f8e4
2 changed files with 2 additions and 1 deletions
|
@ -243,7 +243,7 @@ bool ConfigBase::set_deserialize_raw(const t_config_option_key &opt_key_src, con
|
||||||
for (const auto &opt : def->options) {
|
for (const auto &opt : def->options) {
|
||||||
for (const t_config_option_key &opt_key2 : opt.second.aliases) {
|
for (const t_config_option_key &opt_key2 : opt.second.aliases) {
|
||||||
if (opt_key2 == opt_key) {
|
if (opt_key2 == opt_key) {
|
||||||
opt_key = opt_key2;
|
opt_key = opt.first;
|
||||||
optdef = &opt.second;
|
optdef = &opt.second;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -245,6 +245,7 @@ PrintConfigDef::PrintConfigDef()
|
||||||
def->enum_labels.push_back("Hilbert Curve");
|
def->enum_labels.push_back("Hilbert Curve");
|
||||||
def->enum_labels.push_back("Archimedean Chords");
|
def->enum_labels.push_back("Archimedean Chords");
|
||||||
def->enum_labels.push_back("Octagram Spiral");
|
def->enum_labels.push_back("Octagram Spiral");
|
||||||
|
// solid_fill_pattern is an obsolete equivalent to external_fill_pattern.
|
||||||
def->aliases.push_back("solid_fill_pattern");
|
def->aliases.push_back("solid_fill_pattern");
|
||||||
def->default_value = new ConfigOptionEnum<InfillPattern>(ipRectilinear);
|
def->default_value = new ConfigOptionEnum<InfillPattern>(ipRectilinear);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue