From 9949f85743eb154dcde57dde8f7c46157ca0c2e5 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 9 Jun 2023 07:56:00 +0200 Subject: [PATCH] Improved XL printer detection when adding first object to the plate --- src/libslic3r/Preset.cpp | 2 +- src/slic3r/GUI/Plater.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index 13625748a..f42b3f770 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -2240,7 +2240,7 @@ namespace PresetUtils { { const VendorProfile::PrinterModel *out = nullptr; if (preset.vendor != nullptr) { - auto *printer_model = preset.config.opt("printer_model"); + const auto *printer_model = preset.config.opt("printer_model"); if (printer_model != nullptr && ! printer_model->value.empty()) { auto it = std::find_if(preset.vendor->models.begin(), preset.vendor->models.end(), [printer_model](const VendorProfile::PrinterModel &pm) { return pm.id == printer_model->value; }); if (it != preset.vendor->models.end()) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 0614c4446..187e2737d 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -7696,7 +7696,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->fff_print().config()); } PlaterAfterLoadAutoArrange::~PlaterAfterLoadAutoArrange()