mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Bugfix: G2/G3 I and J coordinates were wrong. #30
This commit is contained in:
@@ -170,13 +170,13 @@ sub G2_G3 {
|
|||||||
$gcode .= sprintf " X%.${dec}f Y%.${dec}f",
|
$gcode .= sprintf " X%.${dec}f Y%.${dec}f",
|
||||||
($point->x * $Slic3r::resolution) + $self->shift_x,
|
($point->x * $Slic3r::resolution) + $self->shift_x,
|
||||||
($point->y * $Slic3r::resolution) + $self->shift_y; #**
|
($point->y * $Slic3r::resolution) + $self->shift_y; #**
|
||||||
$self->last_pos($point);
|
|
||||||
|
|
||||||
# XY distance of the center from the start position
|
# XY distance of the center from the start position
|
||||||
$gcode .= sprintf " I%.${dec}f J%.${dec}f",
|
$gcode .= sprintf " I%.${dec}f J%.${dec}f",
|
||||||
($point->[X] - $self->last_pos->[X]) * $Slic3r::resolution + $self->shift_x,
|
($point->[X] - $self->last_pos->[X]) * $Slic3r::resolution + $self->shift_x,
|
||||||
($point->[Y] - $self->last_pos->[Y]) * $Slic3r::resolution + $self->shift_y;
|
($point->[Y] - $self->last_pos->[Y]) * $Slic3r::resolution + $self->shift_y;
|
||||||
|
|
||||||
|
$self->last_pos($point);
|
||||||
return $self->_Gx($gcode, $e, $comment);
|
return $self->_Gx($gcode, $e, $comment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user