FIX: the API return wrong extruder number; remove the assert

jira: [STUDIO-9532]
Change-Id: Ia91a1d277e35f17588de417aee68f418eceb0a11
(cherry picked from commit 2034cadb562d2d4f39a84d0e7c72bc02a23a5f3e)
This commit is contained in:
xin.zhang authored and Noisyfox committed 2025-09-09 10:39:45 +08:00
1 parent 94ceb3e0a7
commit b09a8ef2a9
3 files changed
+17 -6

No files matched your search

+1 -1
View File
@@ -1994,7 +1994,7 @@ bool SelectMachineDialog::is_same_nozzle_diameters(float& tag_nozzle_diameter) c
auto used_filament_idxs = cur_plate->get_used_filaments();/*the index is started from 1*/
for (int used_filament_idx : used_filament_idxs)
{
int used_nozzle_idx = cur_plate->get_used_nozzle_by_filament_id(used_filament_idx);
int used_nozzle_idx = cur_plate->get_physical_extruder_by_filament_id(preset_bundle->project_config, used_filament_idx);
if (used_nozzle_idx == -1)
{
assert(0);