mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
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
This commit is contained in:
parent
8ee1109746
commit
9d552ddb10
1 changed files with 7 additions and 7 deletions
|
@ -12151,7 +12151,7 @@ void Plater::show_object_info()
|
||||||
int obj_idx = selection.get_object_idx();
|
int obj_idx = selection.get_object_idx();
|
||||||
std::string info_text;
|
std::string info_text;
|
||||||
|
|
||||||
if (selCount > 1) {
|
if (selCount > 1 && !selection.is_single_full_object()) {
|
||||||
notify_manager->bbl_close_objectsinfo_notification();
|
notify_manager->bbl_close_objectsinfo_notification();
|
||||||
if (selection.get_mode() == Selection::EMode::Volume) {
|
if (selection.get_mode() == Selection::EMode::Volume) {
|
||||||
info_text += (boost::format(_utf8(L("Number of currently selected parts: %1%\n"))) % selCount).str();
|
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();
|
size = vol->get_convex_hull().transformed_bounding_box(t).size();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int obj_idx, vol_idx;
|
//int obj_idx, vol_idx;
|
||||||
wxGetApp().obj_list()->get_selected_item_indexes(obj_idx, vol_idx);
|
//wxGetApp().obj_list()->get_selected_item_indexes(obj_idx, vol_idx);
|
||||||
if (obj_idx < 0) {
|
//if (obj_idx < 0) {
|
||||||
//corner case when merge/split/remove
|
// //corner case when merge/split/remove
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
info_text += (boost::format(_utf8(L("Object name: %1%\n"))) % model_object->name).str();
|
info_text += (boost::format(_utf8(L("Object name: %1%\n"))) % model_object->name).str();
|
||||||
face_count = static_cast<int>(model_object->facets_count());
|
face_count = static_cast<int>(model_object->facets_count());
|
||||||
size = model_object->instance_convex_hull_bounding_box(inst_idx).size();
|
size = model_object->instance_convex_hull_bounding_box(inst_idx).size();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue