From 3b21c64c2e0d30c8725a4100475008f1c62743e7 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 29 Jul 2019 16:19:32 +0200 Subject: [PATCH] Fix of "Unable to slice in command line mode: Mixing configurations for FFF and SLA technologies" #2426 --- src/PrusaSlicer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PrusaSlicer.cpp b/src/PrusaSlicer.cpp index 9983c691b5..b1ba30553e 100644 --- a/src/PrusaSlicer.cpp +++ b/src/PrusaSlicer.cpp @@ -94,7 +94,7 @@ int CLI::run(int argc, char **argv) PrinterTechnology other_printer_technology = get_printer_technology(config); if (printer_technology == ptUnknown) { printer_technology = other_printer_technology; - } else if (printer_technology != other_printer_technology) { + } else if (printer_technology != other_printer_technology && other_printer_technology != ptUnknown) { boost::nowide::cerr << "Mixing configurations for FFF and SLA technologies" << std::endl; return 1; } @@ -114,7 +114,7 @@ int CLI::run(int argc, char **argv) PrinterTechnology other_printer_technology = get_printer_technology(m_print_config); if (printer_technology == ptUnknown) { printer_technology = other_printer_technology; - } else if (printer_technology != other_printer_technology) { + } else if (printer_technology != other_printer_technology && other_printer_technology != ptUnknown) { boost::nowide::cerr << "Mixing configurations for FFF and SLA technologies" << std::endl; return 1; }