mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-04 10:48:00 -05:00
Lift straight up in place with slope lift
A slope lift rises along a travel. Since the H2D port, a lift with no travel after it, before a toolchange or a timelapse frame, was a spiral with Slope Lift, though Slope never spirals elsewhere. It now goes straight up, as it did for every Z-hop type up to 2.3.1. Auto and Spiral Lift still spiral there, as Auto does at a layer change, and every Bambu Lab profile uses Auto Lift.
This commit is contained in:
1 parent
c4a11e775b
commit
482ea00a1b
2 files changed
+19
-4
No files matched your search
@@ -194,11 +194,10 @@ std::optional<Vec2d> emitted_xy_after_gcode(const std::string &gcode, const Vec2
|
||||
return coordinate_frame_known ? std::optional<Vec2d>(position) : std::nullopt;
|
||||
}
|
||||
|
||||
// The lift for a retraction with no travel after it, as before a toolchange: a slope needs a travel, so it spirals.
|
||||
// The lift for a retraction with no travel after it, as before a toolchange: a slope needs a travel, so it lifts straight up.
|
||||
LiftType lift_type_in_place(ZHopType z_hop_type)
|
||||
{
|
||||
return z_hop_type == ZHopType::zhtAuto || z_hop_type == ZHopType::zhtSpiral || z_hop_type == ZHopType::zhtSlope ?
|
||||
LiftType::SpiralLift : LiftType::NormalLift;
|
||||
return z_hop_type == ZHopType::zhtAuto || z_hop_type == ZHopType::zhtSpiral ? LiftType::SpiralLift : LiftType::NormalLift;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in new issue
Block a user