mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-25 11:52:05 +00:00
ENH: add back use_relative_e for third party printer
Useless for BambuPrinter. But used by third party printer Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: Ib6a63e78816b25696c25952508f76c3d9221e363
This commit is contained in:
@@ -401,7 +401,7 @@ std::vector<PerExtruderAdjustments> CoolingBuffer::parse_layer_gcode(const std::
|
||||
}
|
||||
if ((line.type & CoolingLine::TYPE_G92) == 0) {
|
||||
//BBS: G0, G1, G2, G3. Calculate the duration.
|
||||
if (RELATIVE_E_AXIS)
|
||||
if (m_config.use_relative_e_distances.value)
|
||||
// Reset extruder accumulator.
|
||||
current_pos[3] = 0.f;
|
||||
float dif[4];
|
||||
|
||||
@@ -54,7 +54,7 @@ std::string SpiralVase::process_layer(const std::string &gcode)
|
||||
// For absolute extruder distances it will be switched off.
|
||||
// Tapering the absolute extruder distances requires to process every extrusion value after the first transition
|
||||
// layer.
|
||||
bool transition = m_transition_layer && RELATIVE_E_AXIS;
|
||||
bool transition = m_transition_layer && m_config.use_relative_e_distances.value;
|
||||
float layer_height_factor = layer_height / total_layer_length;
|
||||
float len = 0.f;
|
||||
m_reader.parse_buffer(gcode, [&new_gcode, &z, total_layer_length, layer_height_factor, transition, &len]
|
||||
|
||||
Reference in New Issue
Block a user