FIX: back up error offset of new object

Change-Id: I4bb78f14e41cf5b299525fcec7d1dd99330abbb4
(cherry picked from commit d081d03cc66c5ed0b2c777ea12d5942cdb48b03c)
This commit is contained in:
zhimin.zeng 2022-11-21 18:32:15 +08:00 committed by Lane.Wei
parent b209243b27
commit 0ce31da96e
1 changed files with 3 additions and 0 deletions

View File

@ -2048,6 +2048,9 @@ void ObjectList::load_mesh_object(const TriangleMesh &mesh, const wxString &name
new_object->invalidate_bounding_box();
new_object->translate(-bb.center());
// BBS: backup
Slic3r::save_object_mesh(*new_object);
// BBS: find an empty cell to put the copied object
auto start_point = wxGetApp().plater()->build_volume().bounding_volume2d().center();
auto empty_cell = wxGetApp().plater()->canvas3D()->get_nearest_empty_cell({start_point(0), start_point(1)});