FIX:[STUDIO-3974] Model reset by plate center when machine switching

jira:STUDIO-3974

Change-Id: I44f5d238a5e7afffc24bbc4359c7ede226d24b4a
This commit is contained in:
Kunlong Ma
2023-08-23 12:12:54 +08:00
committed by Lane.Wei
parent d9de09bba6
commit ab0f9d95fc
7 changed files with 92 additions and 1 deletions

View File

@@ -124,6 +124,11 @@ void View3D::select_curr_plate_all()
m_canvas->select_curr_plate_all();
}
void View3D::select_object_from_idx(std::vector<int>& object_idxs) {
if (m_canvas != nullptr)
m_canvas->select_object_from_idx(object_idxs);
}
//BBS
void View3D::remove_curr_plate_all()
{
@@ -155,6 +160,11 @@ void View3D::center_selected()
m_canvas->do_center();
}
void View3D::center_selected_plate(const int plate_idx) {
if (m_canvas != nullptr)
m_canvas->do_center_plate(plate_idx);
}
void View3D::mirror_selection(Axis axis)
{
if (m_canvas != nullptr)