From f600ea2c5bcf189432a47ff5abf14ebae99814e6 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Fri, 3 Mar 2023 14:04:28 +0100 Subject: [PATCH] Improvements in detection of the XL printer model. --- src/libslic3r/PrintConfig.cpp | 2 +- src/slic3r/GUI/Plater.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 64c29f2d90..c6a324b533 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -4685,7 +4685,7 @@ bool is_XL_printer(const DynamicPrintConfig &cfg) auto *printer_model = cfg.opt("printer_model"); if (printer_model) - ret = boost::algorithm::contains(printer_model->value, ALIGN_ONLY_FOR); + ret = boost::algorithm::starts_with(printer_model->value, ALIGN_ONLY_FOR); return ret; } diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index bb95524811..73fb52fa01 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -6983,7 +6983,7 @@ PlaterAfterLoadAutoArrange::PlaterAfterLoadAutoArrange() Plater* plater = wxGetApp().plater(); m_enabled = plater->model().objects.empty() && plater->printer_technology() == ptFFF && - plater->fff_print().config().printer_model.value == "XL"; + is_XL_printer(*plater->config()); } PlaterAfterLoadAutoArrange::~PlaterAfterLoadAutoArrange()