mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 12:47:50 -06:00
fix z hop bug (#279)
Signed-off-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
fe9a2715e6
commit
a1476784c4
1 changed files with 1 additions and 1 deletions
|
@ -4033,7 +4033,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+" travel_to_xyz");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue