mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 13:52:01 +08:00
Fix simple layer change z update
This commit is contained in:
parent
56e53828e9
commit
b94213bd35
@ -2861,7 +2861,11 @@ std::string GCodeGenerator::change_layer(
|
|||||||
gcode += this->retract_and_wipe();
|
gcode += this->retract_and_wipe();
|
||||||
}
|
}
|
||||||
if (!first_layer) {
|
if (!first_layer) {
|
||||||
|
// travel_to_z is not used as it may not generate the travel if the writter z == print_z.
|
||||||
gcode += this->writer().get_travel_to_z_gcode(print_z, "simple layer change");
|
gcode += this->writer().get_travel_to_z_gcode(print_z, "simple layer change");
|
||||||
|
Vec3d position{this->writer().get_position()};
|
||||||
|
position.z() = print_z;
|
||||||
|
this->writer().update_position(position);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user