diff --git a/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm b/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm index 453d9761c..bfd858f5c 100644 --- a/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm +++ b/lib/Slic3r/GUI/Plater/ObjectPartsPanel.pm @@ -407,6 +407,14 @@ sub on_btn_lambda { } else { return; } + + my $center = $self->{model_object}->bounding_box->center; + if (!$Slic3r::GUI::Settings->{_}{autocenter}) { + #TODO what we really want to do here is just align the + # center of the modifier to the center of the part. + $mesh->translate($center->x, $center->y, 0); + } + $mesh->repair; my $new_volume = $self->{model_object}->add_volume(mesh => $mesh); $new_volume->set_modifier($is_modifier);