mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 20:45:56 +08:00
Add ironing to "lift only on top surfaces"
it's now "lift only on top & ironing surfaces" supermerill/SuperSlicer#1773
This commit is contained in:
parent
037847f800
commit
b8e173aa30
@ -4186,9 +4186,9 @@ std::string GCode::retract(bool toolchange)
|
||||
length is honored in case wipe path was too short. */
|
||||
gcode += toolchange ? m_writer.retract_for_toolchange() : m_writer.retract();
|
||||
bool need_lift = !m_writer.tool_is_extruder() || toolchange || (BOOL_EXTRUDER_CONFIG(retract_lift_first_layer) && m_config.print_retract_lift.value != 0 && this->m_layer_index == 0);
|
||||
bool last_fill_extusion_role_top_infill = (this->m_last_extrusion_role == ExtrusionRole::erTopSolidInfill);
|
||||
bool last_fill_extusion_role_top_infill = (this->m_last_extrusion_role == ExtrusionRole::erTopSolidInfill || this->m_last_extrusion_role == ExtrusionRole::erIroning);
|
||||
if(this->m_last_extrusion_role == ExtrusionRole::erGapFill)
|
||||
last_fill_extusion_role_top_infill = (this->m_last_notgapfill_extrusion_role == ExtrusionRole::erTopSolidInfill);
|
||||
last_fill_extusion_role_top_infill = (this->m_last_notgapfill_extrusion_role == ExtrusionRole::erTopSolidInfill || this->m_last_notgapfill_extrusion_role == ExtrusionRole::erIroning);
|
||||
if (!need_lift && m_config.print_retract_lift.value != 0) {
|
||||
if (EXTRUDER_CONFIG_WITH_DEFAULT(retract_lift_top, "") == "Not on top")
|
||||
need_lift = !last_fill_extusion_role_top_infill;
|
||||
|
Loading…
x
Reference in New Issue
Block a user