diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index f0bf93a55..63e417379 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -1487,6 +1487,12 @@ bool PhysicalPrinter::delete_preset(const std::string& preset_name) return preset_names.erase(preset_name) > 0; } +PhysicalPrinter::PhysicalPrinter(const std::string& name, const DynamicPrintConfig& default_config) : + name(name), config(default_config) +{ + update_from_config(config); +} + PhysicalPrinter::PhysicalPrinter(const std::string& name, const DynamicPrintConfig &default_config, const Preset& preset) : name(name), config(default_config) { diff --git a/src/libslic3r/Preset.hpp b/src/libslic3r/Preset.hpp index 1bf6b94af..2e0e94467 100644 --- a/src/libslic3r/Preset.hpp +++ b/src/libslic3r/Preset.hpp @@ -560,7 +560,7 @@ namespace PresetUtils { class PhysicalPrinter { public: - PhysicalPrinter(const std::string& name, const DynamicPrintConfig &default_config) : name(name), config(default_config) {} + PhysicalPrinter(const std::string& name, const DynamicPrintConfig &default_config); PhysicalPrinter(const std::string& name, const DynamicPrintConfig &default_config, const Preset& preset); void set_name(const std::string &name);