mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
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(
|
$new_model_object->add_instance(
|
||||||
rotation => $plater_object->rotate, # around center point
|
rotation => $plater_object->rotate, # around center point
|
||||||
scaling_factor => $plater_object->scale,
|
scaling_factor => $plater_object->scale,
|
||||||
offset => Slic3r::Point->new($_),
|
offset => Slic3r::Point->new(@$_),
|
||||||
) for @{$plater_object->instances};
|
) for @{$plater_object->instances};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -154,6 +154,7 @@ sub add_model {
|
||||||
print => $self,
|
print => $self,
|
||||||
meshes => [ @meshes ],
|
meshes => [ @meshes ],
|
||||||
copies => [
|
copies => [
|
||||||
|
map Slic3r::Point->new(@$_),
|
||||||
$object->instances
|
$object->instances
|
||||||
? (map [ scale($_->offset->[X] - $align[X]) - $align2[X], scale($_->offset->[Y] - $align[Y]) - $align2[Y] ], @{$object->instances})
|
? (map [ scale($_->offset->[X] - $align[X]) - $align2[X], scale($_->offset->[Y] - $align[Y]) - $align2[Y] ], @{$object->instances})
|
||||||
: [0,0],
|
: [0,0],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue