From 26a0213a1ce0d99bcf9ce300c3a9f786959a98a0 Mon Sep 17 00:00:00 2001 From: Arthur Date: Wed, 11 Sep 2024 13:01:33 +0800 Subject: [PATCH] ENH: [auto arranging] pop message for skipped plates jira: STUDIO-5652 Change-Id: I1ecc191e333cc837ff71163ffcc47d4bc6116a86 (cherry picked from commit b250e3dba4c897c5bb36f52e2ddbabfe8578b32f) --- src/slic3r/GUI/Jobs/ArrangeJob.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Jobs/ArrangeJob.cpp b/src/slic3r/GUI/Jobs/ArrangeJob.cpp index fbcc1b2cd..309112e4d 100644 --- a/src/slic3r/GUI/Jobs/ArrangeJob.cpp +++ b/src/slic3r/GUI/Jobs/ArrangeJob.cpp @@ -229,8 +229,6 @@ void ArrangeJob::prepare_all() { } - // If the selection was empty arrange everything - //if (m_selected.empty()) m_selected.swap(m_unselected); if (m_selected.empty()) { if (!selected_is_locked) { m_plater->get_notification_manager()->push_notification(NotificationType::BBLPlateInfo, @@ -241,6 +239,14 @@ void ArrangeJob::prepare_all() { NotificationManager::NotificationLevel::WarningNotificationLevel, into_u8(_L("All the selected objects are on the locked plate,\nWe can not do auto-arrange on these objects."))); } } + if (!m_uncompatible_plates.empty()) { + std::string msg = "The following plates are skipped due to different arranging settings from global:\n"; + for (int i : m_uncompatible_plates) { + msg += "Plate " + std::to_string(i + 1) + "\n"; + } + m_plater->get_notification_manager()->push_notification(NotificationType::BBLPlateInfo, + NotificationManager::NotificationLevel::WarningNotificationLevel, into_u8(msg)); + } prepare_wipe_tower();