mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: remove extra filament change
Jira: none if the fist print filement as same as the filament be set on start gcode not insert filment change Signed-off-by: qing.zhang <qing.zhang@bambulab.com> Change-Id: I0114f287fff9be276a90772537d1910df18dec61 (cherry picked from commit 276c797faff1407b2c1606d4bfafe21773901001)
This commit is contained in:
@@ -6460,6 +6460,9 @@ std::string GCode::retract(bool toolchange, bool is_last_retraction, LiftType li
|
||||
|
||||
std::string GCode::set_extruder(unsigned int new_filament_id, double print_z, bool by_object)
|
||||
{
|
||||
//init extrude
|
||||
m_writer.init_extruder(new_filament_id);
|
||||
|
||||
int new_extruder_id = get_extruder_id(new_filament_id);
|
||||
if (!m_writer.need_toolchange(new_filament_id))
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user