FIX: back up error offset of new object
Change-Id: I4bb78f14e41cf5b299525fcec7d1dd99330abbb4 (cherry picked from commit d081d03cc66c5ed0b2c777ea12d5942cdb48b03c)
This commit is contained in:
parent
b209243b27
commit
0ce31da96e
|
@ -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)});
|
||||
|
|
Loading…
Reference in New Issue