mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 18:58:00 -06:00
Some initial work for adapting plater to the new centering workflow
This commit is contained in:
parent
250608aa52
commit
4993b12799
2 changed files with 30 additions and 15 deletions
|
@ -227,6 +227,8 @@ sub center_instances_around_point {
|
|||
my ($self, $point) = @_;
|
||||
|
||||
my $bb = $self->bounding_box;
|
||||
return if !defined $bb;
|
||||
|
||||
my $size = $bb->size;
|
||||
my @shift = (
|
||||
-$bb->x_min + $point->[X] - $size->[X]/2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue