mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Purge tower last layer collision potential fix (for SEMM)
This commit is contained in:
@@ -766,11 +766,15 @@ static std::vector<Vec2d> get_path_of_change_filament(const Print& print)
|
|||||||
gcodegen.m_wipe.reset_path(); // We don't want wiping on the ramming lines.
|
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
|
toolchange_gcode_str = gcodegen.set_extruder(new_extruder_id, tcr.print_z); // TODO: toolchange_z vs print_z
|
||||||
if (gcodegen.config().enable_prime_tower) {
|
if (gcodegen.config().enable_prime_tower) {
|
||||||
deretraction_str += gcodegen.writer().travel_to_z(z, "restore layer Z");
|
// ORCA: For SEMM, this move causes the nozzle to crash on the wipe tower for the final wipe layer.
|
||||||
Vec3d position{gcodegen.writer().get_position()};
|
// TODO: Requires validation whether this is an issue even with multi extruder printers
|
||||||
position.z() = z;
|
if(!this->m_single_extruder_multi_material){
|
||||||
gcodegen.writer().set_position(position);
|
deretraction_str += gcodegen.writer().travel_to_z(z, "restore layer Z");
|
||||||
deretraction_str += gcodegen.unretract();
|
Vec3d position{gcodegen.writer().get_position()};
|
||||||
|
position.z() = z;
|
||||||
|
gcodegen.writer().set_position(position);
|
||||||
|
}
|
||||||
|
deretraction_str += gcodegen.unretract();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user