mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 02:57:39 +00:00
Merge remote-tracking branch 'upstream/main' into dev/p2s-pr
# Conflicts: # src/libslic3r/GCode.cpp
This commit is contained in:
@@ -2894,6 +2894,13 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||||||
// mark the first filament used in print
|
// mark the first filament used in print
|
||||||
file.write_format(";VT%d\n", initial_extruder_id);
|
file.write_format(";VT%d\n", initial_extruder_id);
|
||||||
}
|
}
|
||||||
|
// Orca: add missing PA settings for initial filament
|
||||||
|
if (m_config.enable_pressure_advance.get_at(initial_non_support_extruder_id)) {
|
||||||
|
file.write(m_writer.set_pressure_advance(m_config.pressure_advance.get_at(initial_non_support_extruder_id)));
|
||||||
|
// Orca: Adaptive PA
|
||||||
|
// Reset Adaptive PA processor last PA value
|
||||||
|
m_pa_processor->resetPreviousPA(m_config.pressure_advance.get_at(initial_non_support_extruder_id));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//flush FanMover buffer to avoid modifying the start gcode if it's manual.
|
//flush FanMover buffer to avoid modifying the start gcode if it's manual.
|
||||||
@@ -7453,6 +7460,9 @@ std::string GCode::set_extruder(unsigned int new_filament_id, double print_z, bo
|
|||||||
|
|
||||||
if (m_config.enable_pressure_advance.get_at(new_filament_id)) {
|
if (m_config.enable_pressure_advance.get_at(new_filament_id)) {
|
||||||
gcode += m_writer.set_pressure_advance(m_config.pressure_advance.get_at(new_filament_id));
|
gcode += m_writer.set_pressure_advance(m_config.pressure_advance.get_at(new_filament_id));
|
||||||
|
// Orca: Adaptive PA
|
||||||
|
// Reset Adaptive PA processor last PA value
|
||||||
|
m_pa_processor->resetPreviousPA(m_config.pressure_advance.get_at(new_filament_id));
|
||||||
}
|
}
|
||||||
//Orca: tool changer or IDEX's firmware may change Z position, so we set it to unknown/undefined
|
//Orca: tool changer or IDEX's firmware may change Z position, so we set it to unknown/undefined
|
||||||
m_last_pos_defined = false;
|
m_last_pos_defined = false;
|
||||||
|
|||||||
@@ -12349,6 +12349,7 @@ void Plater::calib_retraction(const Calib_Params& params)
|
|||||||
print_config->set_key_value("initial_layer_print_height", new ConfigOptionFloat(layer_height));
|
print_config->set_key_value("initial_layer_print_height", new ConfigOptionFloat(layer_height));
|
||||||
obj->config.set_key_value("layer_height", new ConfigOptionFloat(layer_height));
|
obj->config.set_key_value("layer_height", new ConfigOptionFloat(layer_height));
|
||||||
obj->config.set_key_value("alternate_extra_wall", new ConfigOptionBool(false));
|
obj->config.set_key_value("alternate_extra_wall", new ConfigOptionBool(false));
|
||||||
|
obj->config.set_key_value("seam_position", new ConfigOptionEnum<SeamPosition>(spAligned));
|
||||||
|
|
||||||
changed_objects({ 0 });
|
changed_objects({ 0 });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user