mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH: config: refine some small logic
1. always resize filament count when not matched in full_fff_print 2. remove no-use codes in Preset::normalize jira: no-jira Change-Id: Ie15a5977d28f28e0f63ba84f27f98f77d16665c0 (cherry picked from commit f122c4f4ef6f476c4e8190a0872e566d690d6c25)
This commit is contained in:
@@ -351,7 +351,7 @@ void Preset::normalize(DynamicPrintConfig &config)
|
||||
static_cast<ConfigOptionVectorBase*>(opt)->resize(n, defaults.option(key));
|
||||
}
|
||||
// The following keys are mandatory for the UI, but they are not part of FullPrintConfig, therefore they are handled separately.
|
||||
for (const std::string key : { "filament_settings_id" }) {
|
||||
for (const std::string &key : { "filament_settings_id" }) {
|
||||
auto *opt = config.option(key, false);
|
||||
assert(opt == nullptr || opt->type() == coStrings);
|
||||
if (opt != nullptr && opt->type() == coStrings)
|
||||
|
||||
Reference in New Issue
Block a user