mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 02:52:10 +00:00
FIX: the extruder_id of cali is incorrect with N3S
jira: STUDIO-9888 Change-Id: I25c4a436e322923a247d1c6d3c3de9f0319bb420 (cherry picked from commit 13355ca669229839e8c8943f80cc50533256d0d7)
This commit is contained in:
@@ -69,6 +69,25 @@ wxString get_nozzle_volume_type_name(NozzleVolumeType type)
|
||||
return wxString();
|
||||
}
|
||||
|
||||
void get_tray_ams_and_slot_id(MachineObject* obj, int in_tray_id, int &ams_id, int &slot_id, int &tray_id)
|
||||
{
|
||||
assert(obj);
|
||||
if (!obj)
|
||||
return;
|
||||
|
||||
if (in_tray_id == VIRTUAL_TRAY_MAIN_ID || in_tray_id == VIRTUAL_TRAY_DEPUTY_ID) {
|
||||
ams_id = in_tray_id;
|
||||
slot_id = 0;
|
||||
tray_id = ams_id;
|
||||
if (!obj->is_enable_np)
|
||||
tray_id = VIRTUAL_TRAY_DEPUTY_ID;
|
||||
} else {
|
||||
ams_id = in_tray_id / 4;
|
||||
slot_id = in_tray_id % 4;
|
||||
tray_id = in_tray_id;
|
||||
}
|
||||
}
|
||||
|
||||
std::string get_calib_mode_name(CalibMode cali_mode, int stage)
|
||||
{
|
||||
switch(cali_mode) {
|
||||
|
||||
Reference in New Issue
Block a user