Skip to content

Commit

Permalink
Fix a bug that after load a project, printer connection info is missing
Browse files Browse the repository at this point in the history
Signed-off-by: SoftFever <[email protected]>
  • Loading branch information
SoftFever committed Jan 7, 2023
1 parent 05cf936 commit 15b49bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libslic3r/Preset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,10 @@ std::pair<Preset*, bool> PresetCollection::load_external_preset(
{
// Load the preset over a default preset, so that the missing fields are filled in from the default preset.
DynamicPrintConfig cfg(this->default_preset_for(combined_config).config);
// SoftFever: ignore print connection info from project
cfg.erase("print_host");
cfg.erase("printhost_apikey");
cfg.erase("printhost_cafile");
const auto &keys = cfg.keys();
cfg.apply_only(combined_config, keys, true);
std::string &inherits = Preset::inherits(cfg);
Expand Down

0 comments on commit 15b49bf

Please sign in to comment.