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

@@ -2069,6 +2069,11 @@ void GLCanvas3D::select_curr_plate_all()
m_dirty = true;
}
void GLCanvas3D::select_object_from_idx(std::vector<int>& object_idxs) {
m_selection.add_object_from_idx(object_idxs);
m_dirty = true;
}
//BBS
void GLCanvas3D::remove_curr_plate_all()
{
@@ -4738,6 +4743,13 @@ void GLCanvas3D::do_center()
m_selection.center();
}
void GLCanvas3D::do_center_plate(const int plate_idx) {
if (m_model == nullptr)
return;
m_selection.center_plate(plate_idx);
}
void GLCanvas3D::do_mirror(const std::string& snapshot_type)
{
if (m_model == nullptr)