From 9d552ddb10b497ebb9695dfc599809ad30617ed5 Mon Sep 17 00:00:00 2001 From: "maosheng.wei" Date: Tue, 11 Jul 2023 16:55:17 +0800 Subject: [PATCH] FIX: [STUDIO-3564] Select an object display quantity 1 Select an object with multiple parts and display quantity 1. Simultaneously fixing that when all parts under an object are selected, only the information of that object is displayed. Change-Id: I7fd68615aed75f4b0592c61f4b916783e7c4182a --- src/slic3r/GUI/Plater.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 6e4ae0c22..cc214509d 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -12151,7 +12151,7 @@ void Plater::show_object_info() int obj_idx = selection.get_object_idx(); std::string info_text; - if (selCount > 1) { + if (selCount > 1 && !selection.is_single_full_object()) { notify_manager->bbl_close_objectsinfo_notification(); if (selection.get_mode() == Selection::EMode::Volume) { info_text += (boost::format(_utf8(L("Number of currently selected parts: %1%\n"))) % selCount).str(); @@ -12200,12 +12200,12 @@ void Plater::show_object_info() size = vol->get_convex_hull().transformed_bounding_box(t).size(); } else { - int obj_idx, vol_idx; - wxGetApp().obj_list()->get_selected_item_indexes(obj_idx, vol_idx); - if (obj_idx < 0) { - //corner case when merge/split/remove - return; - } + //int obj_idx, vol_idx; + //wxGetApp().obj_list()->get_selected_item_indexes(obj_idx, vol_idx); + //if (obj_idx < 0) { + // //corner case when merge/split/remove + // return; + //} info_text += (boost::format(_utf8(L("Object name: %1%\n"))) % model_object->name).str(); face_count = static_cast(model_object->facets_count()); size = model_object->instance_convex_hull_bounding_box(inst_idx).size();