mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-12 16:01:49 +08:00
Bugfix: wrong alignment after cut by grid
This commit is contained in:
parent
586d95b28a
commit
ee2d14fcd2
@ -193,9 +193,10 @@ sub new {
|
||||
mesh => $meshes->[$i],
|
||||
name => $o->name,
|
||||
);
|
||||
my $min = $v->mesh->bounding_box->min_point->clone;
|
||||
$o->center_around_origin;
|
||||
my $i = $o->add_instance(offset => Slic3r::Pointf->new(@{$min}[X,Y]));
|
||||
my $i = $o->add_instance(
|
||||
offset => Slic3r::Pointf->new(@{$o->origin_translation->negative}[X,Y]),
|
||||
);
|
||||
$i->offset->translate(
|
||||
5 * ceil(($i->offset->x - $bb->center->x) / $grid_x),
|
||||
5 * ceil(($i->offset->y - $bb->center->y) / $grid_y),
|
||||
|
Loading…
x
Reference in New Issue
Block a user