mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-21 14:09:54 +02:00
Some initial work for adapting plater to the new centering workflow
This commit is contained in:
1 parent
250608aa52
commit
4993b12799
2 files changed
+30
-15
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user