mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 03:13:39 +00:00
FIX: fix the drawing problem caused by timelapse gcode
jira: STUDIO-9620 Change-Id: Iaa1af887e646a136e657ccecabe3c8e6824131b3 (cherry picked from commit b028f971d663dcafd63b0ce92cc9b606b7c9cf37)
This commit is contained in:
@@ -4802,13 +4802,13 @@ 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();
|
||||||
if(!timepals_gcode.empty()){
|
if(!timepals_gcode.empty()){
|
||||||
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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user