mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Finished updating plater to the new centering logic
This commit is contained in:
@@ -235,9 +235,12 @@ sub center_instances_around_point {
|
||||
-$bb->y_min + $point->[Y] - $size->[Y]/2,
|
||||
);
|
||||
|
||||
foreach my $instance (map @{$_->instances}, @{$self->objects}) {
|
||||
$instance->offset->[X] += $shift[X];
|
||||
$instance->offset->[Y] += $shift[Y];
|
||||
foreach my $object (@{$self->objects}) {
|
||||
foreach my $instance (@{$object->instances}) {
|
||||
$instance->offset->[X] += $shift[X];
|
||||
$instance->offset->[Y] += $shift[Y];
|
||||
}
|
||||
$object->update_bounding_box;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user