Fix SPE-2650: Respect z offset for wipe tower first layer

Wipe tower bases its position on current writer position.
It was not properly set on the first layer.
This commit is contained in:
Martin Šach 2025-01-23 12:36:25 +01:00 committed by Lukas Matena
parent f156c459f7
commit c438e564c0

View File

@ -2994,6 +2994,10 @@ std::string GCodeGenerator::change_layer(
Vec3d position{this->writer().get_position()};
position.z() = print_z;
this->writer().update_position(position);
} else {
Vec3d position{this->writer().get_position()};
position.z() = position.z() + m_config.z_offset;
this->writer().update_position(position);
}
}