From 1b0cd8889978273d4b98aec891e6064fa35d311b Mon Sep 17 00:00:00 2001 From: "maosheng.wei" Date: Tue, 27 Jun 2023 10:37:15 +0800 Subject: [PATCH] FIX: [STUDIO-3303] The quantity of Model selection Change-Id: I3994cf4f5f21ad0ca4b12828f9c22ea1cc26e901 --- src/slic3r/GUI/Plater.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index a0f50f23d..f55a36de1 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -12045,7 +12045,12 @@ void Plater::show_object_info() if (selCount > 1) { notify_manager->bbl_close_objectsinfo_notification(); - info_text += (boost::format(_utf8(L("Number of currently selected: %1%\n"))) % selCount).str(); + if (selection.get_mode() == Selection::EMode::Volume) { + info_text += (boost::format(_utf8(L("Number of currently selected parts: %1%\n"))) % selCount).str(); + } else if (selection.get_mode() == Selection::EMode::Instance) { + int content_count = selection.get_content().size(); + info_text += (boost::format(_utf8(L("Number of currently selected objects: %1%\n"))) % content_count).str(); + } notify_manager->bbl_show_objectsinfo_notification(info_text, false, !(p->current_panel == p->view3D)); return; }