Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-08-03 15:14:25 +0300
committerbubnikv <bubnikv@gmail.com>2018-08-03 15:14:25 +0300
commitf65aadebef104a4806f4995bae86af6a5ef211ab (patch)
tree561a9edefbdce66da3dd9d1297bca16b0f181811 /xs/src/slic3r/GUI/PresetBundle.cpp
parent884f1ff4c0e8d82e56e157781902c75e3a8a19cc (diff)
Corrected initialization of the SLA presets with their default values.SLA
Diffstat (limited to 'xs/src/slic3r/GUI/PresetBundle.cpp')
-rw-r--r--xs/src/slic3r/GUI/PresetBundle.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/xs/src/slic3r/GUI/PresetBundle.cpp b/xs/src/slic3r/GUI/PresetBundle.cpp
index 7047841be..dc40ced3b 100644
--- a/xs/src/slic3r/GUI/PresetBundle.cpp
+++ b/xs/src/slic3r/GUI/PresetBundle.cpp
@@ -40,10 +40,10 @@ static std::vector<std::string> s_project_options {
};
PresetBundle::PresetBundle() :
- prints(Preset::TYPE_PRINT, Preset::print_options()),
- filaments(Preset::TYPE_FILAMENT, Preset::filament_options()),
- sla_materials(Preset::TYPE_SLA_MATERIAL, Preset::sla_material_options()),
- printers(Preset::TYPE_PRINTER, Preset::printer_options(), "- default FFF -"),
+ prints(Preset::TYPE_PRINT, Preset::print_options(), static_cast<const HostConfig&>(FullPrintConfig::defaults())),
+ filaments(Preset::TYPE_FILAMENT, Preset::filament_options(), static_cast<const HostConfig&>(FullPrintConfig::defaults())),
+ sla_materials(Preset::TYPE_SLA_MATERIAL, Preset::sla_material_options(), static_cast<const SLAMaterialConfig&>(SLAFullPrintConfig::defaults())),
+ printers(Preset::TYPE_PRINTER, Preset::printer_options(), static_cast<const HostConfig&>(FullPrintConfig::defaults()), "- default FFF -"),
m_bitmapCompatible(new wxBitmap),
m_bitmapIncompatible(new wxBitmap),
m_bitmapLock(new wxBitmap),
@@ -74,7 +74,7 @@ PresetBundle::PresetBundle() :
this->sla_materials.default_preset().compatible_printers_condition();
this->sla_materials.default_preset().inherits();
- this->printers.add_default_preset(Preset::sla_printer_options(), "- default SLA -");
+ this->printers.add_default_preset(Preset::sla_printer_options(), static_cast<const SLAMaterialConfig&>(SLAFullPrintConfig::defaults()), "- default SLA -");
this->printers.preset(1).printer_technology() = ptSLA;
for (size_t i = 0; i < 2; ++ i) {
Preset &preset = this->printers.preset(i);
@@ -419,7 +419,7 @@ DynamicPrintConfig PresetBundle::full_config() const
DynamicPrintConfig PresetBundle::full_fff_config() const
{
DynamicPrintConfig out;
- out.apply(FullPrintConfig());
+ out.apply(FullPrintConfig::defaults());
out.apply(this->prints.get_edited_preset().config);
// Add the default filament preset to have the "filament_preset_id" defined.
out.apply(this->filaments.default_preset().config);
@@ -514,7 +514,7 @@ DynamicPrintConfig PresetBundle::full_fff_config() const
DynamicPrintConfig PresetBundle::full_sla_config() const
{
DynamicPrintConfig out;
- out.apply(SLAFullPrintConfig());
+ out.apply(SLAFullPrintConfig::defaults());
out.apply(this->sla_materials.get_edited_preset().config);
out.apply(this->printers.get_edited_preset().config);
// There are no project configuration values as of now, the project_config is reserved for FFF printers.