mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-13 02:49:01 +08:00
force restore Z
This commit is contained in:
parent
447cc01405
commit
13ddb38119
@ -762,8 +762,13 @@ static std::vector<Vec2d> get_path_of_change_filament(const Print& print)
|
||||
if (is_ramming)
|
||||
gcodegen.m_wipe.reset_path(); // We don't want wiping on the ramming lines.
|
||||
toolchange_gcode_str = gcodegen.set_extruder(new_extruder_id, tcr.print_z); // TODO: toolchange_z vs print_z
|
||||
if (gcodegen.config().enable_prime_tower)
|
||||
deretraction_str = gcodegen.unretract();
|
||||
if (gcodegen.config().enable_prime_tower) {
|
||||
deretraction_str += gcodegen.writer().travel_to_z(z, "restore layer Z");
|
||||
Vec3d position{gcodegen.writer().get_position()};
|
||||
position.z() = z;
|
||||
gcodegen.writer().set_position(position);
|
||||
deretraction_str += gcodegen.unretract();
|
||||
}
|
||||
}
|
||||
|
||||
// Insert the toolchange and deretraction gcode into the generated gcode.
|
||||
|
Loading…
x
Reference in New Issue
Block a user