FIX: fix the drawing problem caused by timelapse gcode
jira: STUDIO-9620 Change-Id: Iaa1af887e646a136e657ccecabe3c8e6824131b3
This commit is contained in:
parent
d92db44f47
commit
b028f971d6
|
@ -4301,12 +4301,12 @@ GCode::LayerResult GCode::process_layer(
|
||||||
if (m_support_traditional_timelapse && printer_structure == PrinterStructure::psI3)
|
if (m_support_traditional_timelapse && printer_structure == PrinterStructure::psI3)
|
||||||
m_support_traditional_timelapse = false;
|
m_support_traditional_timelapse = false;
|
||||||
|
|
||||||
gcode += this->retract(false, false, LiftType::NormalLift);
|
gcode += this->retract(false, false, LiftType::SpiralLift);
|
||||||
m_writer.add_object_change_labels(gcode);
|
m_writer.add_object_change_labels(gcode);
|
||||||
|
|
||||||
std::string timepals_gcode = insert_timelapse_gcode();
|
std::string timepals_gcode = insert_timelapse_gcode();
|
||||||
gcode += timepals_gcode;
|
gcode += timepals_gcode;
|
||||||
m_writer.set_current_position_clear(false);
|
m_writer.set_current_position_clear(true);
|
||||||
//BBS: check whether custom gcode changes the z position. Update if changed
|
//BBS: check whether custom gcode changes the z position. Update if changed
|
||||||
double temp_z_after_timepals_gcode;
|
double temp_z_after_timepals_gcode;
|
||||||
if (GCodeProcessor::get_last_z_from_gcode(timepals_gcode, temp_z_after_timepals_gcode)) {
|
if (GCodeProcessor::get_last_z_from_gcode(timepals_gcode, temp_z_after_timepals_gcode)) {
|
||||||
|
|
Loading…
Reference in New Issue