FIX: timelapse gcode is not effective when print by object

jira: none
Change-Id: I36298c7c0ddea59f4cc9a5a1a19aeb7124bb2565
This commit is contained in:
zhimin.zeng 2025-01-02 16:46:56 +08:00 committed by lane.wei
parent 17771d0fbf
commit e34940024f
1 changed files with 5 additions and 5 deletions

View File

@ -3546,11 +3546,11 @@ GCode::LayerResult GCode::process_layer(
PrinterStructure printer_structure = m_config.printer_structure.value;
bool need_insert_timelapse_gcode_for_traditional = false;
if ((printer_structure == PrinterStructure::psI3 || m_config.nozzle_diameter.values.size() == 2)&&
!m_spiral_vase &&
(!m_wipe_tower || !m_wipe_tower->enable_timelapse_print()) &&
print.config().print_sequence == PrintSequence::ByLayer) {
need_insert_timelapse_gcode_for_traditional = true;
if (!m_spiral_vase && (!m_wipe_tower || !m_wipe_tower->enable_timelapse_print())) {
if (printer_structure == PrinterStructure::psI3 && print.config().print_sequence == PrintSequence::ByLayer)
need_insert_timelapse_gcode_for_traditional = true;
else if (m_config.nozzle_diameter.values.size() == 2)
need_insert_timelapse_gcode_for_traditional = true;
}
bool has_insert_timelapse_gcode = false;
bool has_wipe_tower = (layer_tools.has_wipe_tower && m_wipe_tower);