mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fix last_pos shifting and add unit test
This commit is contained in:
parent
ad48fdc7f9
commit
ddaeaa7591
3 changed files with 22 additions and 0 deletions
|
@ -62,6 +62,7 @@ sub set_shift {
|
|||
my $self = shift;
|
||||
my @shift = @_;
|
||||
|
||||
# if shift increases (goes towards right), last_pos decreases because it goes towards left
|
||||
$self->last_pos->translate(
|
||||
scale ($self->shift_x - $shift[X]),
|
||||
scale ($self->shift_y - $shift[Y]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue