mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 05:01:59 +08:00
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:
parent
d586870feb
commit
9b6b20070a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user