mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-05 06:17:45 -07:00
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:
parent
94ceb3e0a7
commit
b09a8ef2a9
3 changed files with 17 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue