FIX: extra seams on path

Jira: 6625

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: If930425d4190a1071608af52e6a5fadec3e89fc0
This commit is contained in:
qing.zhang 2024-03-21 15:46:55 +08:00 committed by Lane.Wei
parent 03ad69c4f0
commit c6f5300f5e
1 changed files with 0 additions and 11 deletions

View File

@ -4838,17 +4838,6 @@ std::string GCode::travel_to(const Point &point, ExtrusionRole role, std::string
} else if (m_config.default_jerk.value > 0 && m_config.travel_jerk.value > 0 && !this->is_BBL_Printer())
gcode += m_writer.set_jerk_xy(m_config.travel_jerk.value);
for (size_t i = 1; i < travel.size(); ++ i) {
// BBS. Process lazy layer change, but don't do lazy layer change when enable spiral vase
Vec3d curr_pos = m_writer.get_position();
if (i == 1 && !m_spiral_vase) {
Vec2d dest2d = this->point_to_gcode(travel.points[i]);
Vec3d dest3d(dest2d(0), dest2d(1), m_nominal_z);
gcode += m_writer.travel_to_xyz(dest3d, comment);
} else {
gcode += m_writer.travel_to_xy(this->point_to_gcode(travel.points[i]), comment);
}
}
if (m_spiral_vase) {
// No lazy z lift for spiral vase mode
for (size_t i = 1; i < travel.size(); ++i)