ENH: STUDIO-2113 fix spiral lift in crossing wall mode

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I73f0d7fd6679d4e9645de4e7212e1b364cb7ea31
This commit is contained in:
qing.zhang 2023-02-13 11:32:31 +08:00 committed by Lane.Wei
parent 97acb54695
commit e69c0ed7f6

View file

@ -3880,7 +3880,7 @@ std::string GCode::travel_to(const Point &point, ExtrusionRole role, std::string
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 == travel.size() - 1 && !m_spiral_vase) {
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);