mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Clone last_pos before storing it otherwise it will be translated. #786
This commit is contained in:
parent
b625c3b2b2
commit
06b475a4ed
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ sub _G0_G1 {
|
||||||
$gcode .= sprintf " X%.${dec}f Y%.${dec}f",
|
$gcode .= sprintf " X%.${dec}f Y%.${dec}f",
|
||||||
($point->x * &Slic3r::SCALING_FACTOR) + $self->shift_x - $self->extruder->extruder_offset->[X],
|
($point->x * &Slic3r::SCALING_FACTOR) + $self->shift_x - $self->extruder->extruder_offset->[X],
|
||||||
($point->y * &Slic3r::SCALING_FACTOR) + $self->shift_y - $self->extruder->extruder_offset->[Y]; #**
|
($point->y * &Slic3r::SCALING_FACTOR) + $self->shift_y - $self->extruder->extruder_offset->[Y]; #**
|
||||||
$self->last_pos($point);
|
$self->last_pos($point->clone);
|
||||||
}
|
}
|
||||||
if (defined $z && (!defined $self->z || $z != $self->z)) {
|
if (defined $z && (!defined $self->z || $z != $self->z)) {
|
||||||
$self->z($z);
|
$self->z($z);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue