mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-05 06:44:56 +08:00
Fixed regression causing wrong relative positions of objects after splitting in plater. #1758
This commit is contained in:
parent
5ce4de0544
commit
72a6848f1b
@ -633,6 +633,7 @@ sub split_object {
|
|||||||
# create a bogus Model object, we only need to instantiate the new Model::Object objects
|
# create a bogus Model object, we only need to instantiate the new Model::Object objects
|
||||||
my $new_model = Slic3r::Model->new;
|
my $new_model = Slic3r::Model->new;
|
||||||
|
|
||||||
|
my @model_objects = ();
|
||||||
foreach my $mesh (@new_meshes) {
|
foreach my $mesh (@new_meshes) {
|
||||||
$mesh->repair;
|
$mesh->repair;
|
||||||
|
|
||||||
@ -659,8 +660,12 @@ sub split_object {
|
|||||||
}
|
}
|
||||||
# we need to center this single object around origin
|
# we need to center this single object around origin
|
||||||
$model_object->center_around_origin;
|
$model_object->center_around_origin;
|
||||||
$self->load_model_objects($model_object);
|
push @model_objects, $model_object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# load all model objects at once, otherwise the plate would be rearranged after each one
|
||||||
|
# causing original positions not to be kept
|
||||||
|
$self->load_model_objects(@model_objects);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub export_gcode {
|
sub export_gcode {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user