mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
ENH: support to set bed type for each plate
Signed-off-by: yifan.wu <yifan.wu@bambulab.com> Change-Id: I654743ce8b49057587545c3acfe0b78504242d46
This commit is contained in:
@@ -4036,11 +4036,18 @@ void ObjectList::select_items(const std::vector<ObjectVolumeID>& ov_ids)
|
||||
void ObjectList::select_items(const wxDataViewItemArray& sels)
|
||||
{
|
||||
m_prevent_list_events = true;
|
||||
|
||||
m_last_selected_item = sels.empty() ? wxDataViewItem(nullptr) : sels.back();
|
||||
|
||||
UnselectAll();
|
||||
SetSelections(sels);
|
||||
|
||||
if (!sels.empty()) {
|
||||
SetSelections(sels);
|
||||
}
|
||||
else {
|
||||
int curr_plate_idx = wxGetApp().plater()->get_partplate_list().get_curr_plate_index();
|
||||
on_plate_selected(curr_plate_idx);
|
||||
}
|
||||
|
||||
part_selection_changed();
|
||||
|
||||
m_prevent_list_events = false;
|
||||
|
||||
Reference in New Issue
Block a user