FIX: set initial one to initial no support extruder

Jira: none

while there is no non support filament
set first print filament to initial_no_support_extruder

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: If2fee560772c9a7cfa1855efc85116fb7df04760
This commit is contained in:
qing.zhang 2024-12-04 10:07:39 +08:00 committed by lane.wei
parent f9cd3dd876
commit 361d748992
1 changed files with 5 additions and 0 deletions

View File

@ -1941,6 +1941,11 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
initial_extruder_id = 0;
initial_non_support_extruder_id = 0;
}
//could not find non support filmanet, use fisrt print filament
if (initial_non_support_extruder_id == (unsigned int) -1)
initial_non_support_extruder_id = initial_extruder_id;
print.throw_if_canceled();
m_cooling_buffer = make_unique<CoolingBuffer>(*this);