mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Fixed error in porting causing wrong moves with avoid_crossing_perimeters
This commit is contained in:
parent
9dc0514844
commit
667a121ddb
6 changed files with 16 additions and 8 deletions
|
@ -203,8 +203,8 @@ GCode::GCode()
|
|||
{
|
||||
}
|
||||
|
||||
Point&
|
||||
GCode::last_pos()
|
||||
const Point&
|
||||
GCode::last_pos() const
|
||||
{
|
||||
return this->_last_pos;
|
||||
}
|
||||
|
@ -249,13 +249,12 @@ void
|
|||
GCode::set_origin(const Pointf &pointf)
|
||||
{
|
||||
// if origin increases (goes towards right), last_pos decreases because it goes towards left
|
||||
Point translate(
|
||||
const Point translate(
|
||||
scale_(this->origin.x - pointf.x),
|
||||
scale_(this->origin.y - pointf.y)
|
||||
);
|
||||
this->_last_pos.translate(translate);
|
||||
this->wipe.path.translate(translate);
|
||||
|
||||
this->origin = pointf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue