Fix an issue that wrong z value was used if a new layer is started with wipe tower extrusions.

This commit is contained in:
SoftFever 2024-10-01 23:28:24 +08:00
parent 5bb42bc0d5
commit a5d2fa1aed
3 changed files with 11 additions and 12 deletions

View file

@ -81,7 +81,8 @@ public:
std::string unretract();
std::string lift(LiftType lift_type = LiftType::NormalLift, bool spiral_vase = false);
std::string unlift();
Vec3d get_position() const { return m_pos; }
const Vec3d& get_position() const { return m_pos; }
Vec3d& get_position() { return m_pos; }
void set_position(const Vec3d& in) { m_pos = in; }
double get_zhop() const { return m_lifted; }