Drop object on the plate (#6166)

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Vovodroid 2024-08-06 18:18:28 +03:00 committed by GitHub
parent 724762bbc8
commit 98a243c302
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 52 additions and 0 deletions

View file

@ -490,6 +490,12 @@ void Selection::center()
return;
}
void Selection::drop()
{
this->move_to_center(Vec3d(0, 0, -this->get_bounding_box().min.z()));
wxGetApp().plater()->get_view3D_canvas3D()->do_move(L("Move Object"));
}
void Selection::center_plate(const int plate_idx) {
PartPlate* plate = wxGetApp().plater()->get_partplate_list().get_plate(plate_idx);