mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-20 01:12:09 +00:00
FIX:[STUDIO-3974] Model reset by plate center when machine switching
jira:STUDIO-3974 Change-Id: I44f5d238a5e7afffc24bbc4359c7ede226d24b4a
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user