mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-03 23:50:38 +08:00
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:
parent
f156c459f7
commit
c438e564c0
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user