Minor typos preventing correct positioning after recent XS merge
This commit is contained in:
parent
67aefdccc7
commit
2d3dae621a
2 changed files with 2 additions and 1 deletions
|
@ -807,7 +807,7 @@ sub make_model {
|
|||
$new_model_object->add_instance(
|
||||
rotation => $plater_object->rotate, # around center point
|
||||
scaling_factor => $plater_object->scale,
|
||||
offset => Slic3r::Point->new($_),
|
||||
offset => Slic3r::Point->new(@$_),
|
||||
) for @{$plater_object->instances};
|
||||
}
|
||||
|
||||
|
|
|
@ -154,6 +154,7 @@ sub add_model {
|
|||
print => $self,
|
||||
meshes => [ @meshes ],
|
||||
copies => [
|
||||
map Slic3r::Point->new(@$_),
|
||||
$object->instances
|
||||
? (map [ scale($_->offset->[X] - $align[X]) - $align2[X], scale($_->offset->[Y] - $align[Y]) - $align2[Y] ], @{$object->instances})
|
||||
: [0,0],
|
||||
|
|
Loading…
Add table
Reference in a new issue