From 6d49bc1978833d52902ebc944e5126f20b2cd349 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Tue, 19 Jan 2021 15:35:27 +0100 Subject: [PATCH] Follow-up to 2bc6679a6214d7fd24aafb3f456f309ff93247ae Set the printer_technology field. --- src/PrusaSlicer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PrusaSlicer.cpp b/src/PrusaSlicer.cpp index fbcf531b5..35450782b 100644 --- a/src/PrusaSlicer.cpp +++ b/src/PrusaSlicer.cpp @@ -205,6 +205,7 @@ int CLI::run(int argc, char **argv) if (printer_technology == ptUnknown) printer_technology = std::find(m_actions.begin(), m_actions.end(), "export_sla") == m_actions.end() ? ptFFF : ptSLA; + m_print_config.option>("printer_technology", true)->value = printer_technology; // Initialize full print configs for both the FFF and SLA technologies. FullPrintConfig fff_print_config; @@ -216,8 +217,6 @@ int CLI::run(int argc, char **argv) m_print_config.apply(fff_print_config, true); } else { assert(printer_technology == ptSLA); - // The default value has to be different from the one in fff mode. - sla_print_config.printer_technology.value = ptSLA; sla_print_config.output_filename_format.value = "[input_filename_base].sl1"; // The default bed shape should reflect the default display parameters