mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-31 11:50:33 -07:00
FIX: fix the error wipe path after nozzlechange
jira: none Change-Id: I1a724b117dadc76a54f29fd75eb96e82a78f901b (cherry picked from commit 0b4da5ebb7e151d1da0627836e02b6cdc9322e89)
This commit is contained in:
parent
17813b487f
commit
ff958c3bd9
1 changed files with 4 additions and 4 deletions
|
|
@ -2771,11 +2771,11 @@ WipeTower::NozzleChangeResult WipeTower::nozzle_change_new(int old_filament_id,
|
|||
left_to_right = !left_to_right;
|
||||
}
|
||||
} else {
|
||||
result.wipe_path.push_back(writer.pos());
|
||||
result.wipe_path.push_back(writer.pos_rotated());
|
||||
if (m_left_to_right) {
|
||||
result.wipe_path.push_back(Vec2f(0, writer.y()));
|
||||
result.wipe_path.push_back(Vec2f(0, writer.pos_rotated().y()));
|
||||
} else {
|
||||
result.wipe_path.push_back(Vec2f(m_wipe_tower_width, writer.y()));
|
||||
result.wipe_path.push_back(Vec2f(m_wipe_tower_width, writer.pos_rotated().y()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2783,7 +2783,7 @@ WipeTower::NozzleChangeResult WipeTower::nozzle_change_new(int old_filament_id,
|
|||
|
||||
result.start_pos = writer.start_pos_rotated();
|
||||
result.origin_start_pos = initial_position;
|
||||
result.end_pos = writer.pos();
|
||||
result.end_pos = writer.pos_rotated();
|
||||
result.gcode = writer.gcode();
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue