Fixed yet one more regression in Quick Slice caused by recent Model refactoring. #1208
This commit is contained in:
parent
28a01e7c5e
commit
086ec4af9c
1 changed files with 5 additions and 2 deletions
|
@ -121,7 +121,8 @@ sub add_model {
|
||||||
|
|
||||||
# we ignore the per-instance rotation currently and only
|
# we ignore the per-instance rotation currently and only
|
||||||
# consider the first one
|
# consider the first one
|
||||||
$mesh->rotate($object->instances->[0]->rotation, $mesh->center);
|
$mesh->rotate($object->instances->[0]->rotation, $mesh->center)
|
||||||
|
if @{ $object->instances // [] };
|
||||||
|
|
||||||
$mesh->scale(1 / &Slic3r::SCALING_FACTOR);
|
$mesh->scale(1 / &Slic3r::SCALING_FACTOR);
|
||||||
}
|
}
|
||||||
|
@ -139,7 +140,9 @@ sub add_model {
|
||||||
print => $self,
|
print => $self,
|
||||||
meshes => [ @meshes ],
|
meshes => [ @meshes ],
|
||||||
copies => [
|
copies => [
|
||||||
map [ (scale $_->offset->[X]) + $extents[X][MIN], (scale $_->offset->[Y]) + $extents[Y][MIN] ], @{$object->instances},
|
$object->instances
|
||||||
|
? (map [ (scale $_->offset->[X]) + $extents[X][MIN], (scale $_->offset->[Y]) + $extents[Y][MIN] ], @{$object->instances})
|
||||||
|
: [0,0],
|
||||||
],
|
],
|
||||||
size => [ map $extents[$_][MAX] - $extents[$_][MIN], (X,Y,Z) ],
|
size => [ map $extents[$_][MAX] - $extents[$_][MIN], (X,Y,Z) ],
|
||||||
input_file => $object->input_file,
|
input_file => $object->input_file,
|
||||||
|
|
Loading…
Reference in a new issue