diff options
author | bubnikv <bubnikv@gmail.com> | 2018-06-22 15:17:03 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-06-22 15:17:03 +0300 |
commit | 082ed95a943554d27f0bbf8815c1db76d1208515 (patch) | |
tree | d2ecf73a8573153fa64ae61f0ef741677f29a576 /xs/src/libslic3r | |
parent | 8abe1b3633b9fe6f304eeac2feb7aeeeae0bf8e8 (diff) |
Activate existing projects after loading AMF/3MF/Config: Initial implementation.
Diffstat (limited to 'xs/src/libslic3r')
-rw-r--r-- | xs/src/libslic3r/GCode.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xs/src/libslic3r/GCode.cpp b/xs/src/libslic3r/GCode.cpp index 479af7abe..009493113 100644 --- a/xs/src/libslic3r/GCode.cpp +++ b/xs/src/libslic3r/GCode.cpp @@ -1415,11 +1415,12 @@ void GCode::append_full_config(const Print& print, std::string& str) for (size_t i = 0; i < sizeof(configs) / sizeof(configs[0]); ++i) { const StaticPrintConfig *cfg = configs[i]; for (const std::string &key : cfg->keys()) - { if (key != "compatible_printers") str += "; " + key + " = " + cfg->serialize(key) + "\n"; - } } + const DynamicConfig &full_config = print.placeholder_parser.config(); + for (const char *key : { "print_settings_id", "filament_settings_id", "printer_settings_id" }) + str += std::string("; ") + key + " = " + full_config.serialize(key) + "\n"; } void GCode::set_extruders(const std::vector<unsigned int> &extruder_ids) |