Fix incorrect length modification when loading device-related parameters

(cherry picked from commit bambulab/BambuStudio@ebf57372da)

Co-Authored-By: weizhen.xie <weizhen.xie@bambulab.com>
This commit is contained in:
Noisyfox
2026-07-07 22:02:10 +08:00
parent 4227a192cd
commit 7f67946dbf
3 changed files with 15 additions and 0 deletions

View File

@@ -470,6 +470,8 @@ void Preset::normalize(DynamicPrintConfig &config)
continue;
if (filament_options_with_variant.find(key) != filament_options_with_variant.end())
continue;
if (filament_dev_options.find(key) != filament_dev_options.end())
continue;
auto *opt = config.option(key, false);
/*assert(opt != nullptr);
assert(opt->is_vector());*/