Fix for SPE-2170 : Incorrectly imported settings/overrides from g-code file.

Write to G-code whole filament overridden even if some of then are NAN.
This commit is contained in:
YuSanka 2024-03-04 14:36:40 +01:00 committed by Lukas Matena
parent d586870feb
commit 9b6b20070a

View File

@ -2852,7 +2852,7 @@ void GCodeGenerator::encode_full_config(const Print& print, std::vector<std::pai
};
config.reserve(config.size() + cfg.keys().size());
for (const std::string& key : cfg.keys()) {
if (!is_banned(key) && !cfg.option(key)->is_nil())
if (!is_banned(key))
config.emplace_back(key, cfg.opt_serialize(key));
}
config.shrink_to_fit();