mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-17 07:45:56 +08:00
Merge branch 'master' into fs_simplify_multipart_object
This commit is contained in:
commit
1962b663b4
@ -1758,12 +1758,9 @@ void ObjectList::load_mesh_object(const TriangleMesh &mesh, const wxString &name
|
|||||||
new_object->invalidate_bounding_box();
|
new_object->invalidate_bounding_box();
|
||||||
new_object->translate(-bb.center());
|
new_object->translate(-bb.center());
|
||||||
|
|
||||||
if (center) {
|
new_object->instances[0]->set_offset(center ?
|
||||||
const BoundingBoxf bed_shape = wxGetApp().plater()->bed_shape_bb();
|
to_3d(wxGetApp().plater()->build_volume().bounding_volume2d().center(), -new_object->origin_translation.z()) :
|
||||||
new_object->instances[0]->set_offset(Slic3r::to_3d(bed_shape.center().cast<double>(), -new_object->origin_translation.z()));
|
bb.center());
|
||||||
} else {
|
|
||||||
new_object->instances[0]->set_offset(bb.center());
|
|
||||||
}
|
|
||||||
|
|
||||||
new_object->ensure_on_bed();
|
new_object->ensure_on_bed();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user