mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
FIX:fixed unable to reset ams filament setting
jira:[for reset ams] Change-Id: I9f2f8be4a6e16b05191e4076db4e3f53d7601db4 (cherry picked from commit 3119a84eb2af58b89113f03c4393d1062423f930)
This commit is contained in:
@@ -487,10 +487,23 @@ void AMSMaterialsSetting::on_select_reset(wxCommandEvent& event) {
|
|||||||
if (obj) {
|
if (obj) {
|
||||||
// set filament
|
// set filament
|
||||||
if (is_virtual_tray()) {
|
if (is_virtual_tray()) {
|
||||||
obj->command_ams_filament_settings(255, VIRTUAL_TRAY_ID, ams_filament_id, ams_setting_id, std::string(col_buf), m_filament_type, nozzle_temp_min_int, nozzle_temp_max_int);
|
auto tar_tray = VIRTUAL_TRAY_ID;
|
||||||
|
|
||||||
|
if (!obj->is_enable_np) {
|
||||||
|
tar_tray = VIRTUAL_TRAY_ID;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
tar_tray = 0;
|
||||||
|
}
|
||||||
|
obj->command_ams_filament_settings(ams_id, tar_tray, ams_filament_id, ams_setting_id, std::string(col_buf), m_filament_type, nozzle_temp_min_int, nozzle_temp_max_int);
|
||||||
}
|
}
|
||||||
else if(m_is_third){
|
else if(m_is_third){
|
||||||
obj->command_ams_filament_settings(ams_id, tray_id, ams_filament_id, ams_setting_id, std::string(col_buf), m_filament_type, nozzle_temp_min_int, nozzle_temp_max_int);
|
if (obj->is_enable_np) {
|
||||||
|
obj->command_ams_filament_settings(ams_id, slot_id, ams_filament_id, ams_setting_id, std::string(col_buf), m_filament_type, nozzle_temp_min_int, nozzle_temp_max_int);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
obj->command_ams_filament_settings(ams_id, ams_id * 4 + slot_id, ams_filament_id, ams_setting_id, std::string(col_buf), m_filament_type, nozzle_temp_min_int, nozzle_temp_max_int);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set k / n value
|
// set k / n value
|
||||||
|
|||||||
Reference in New Issue
Block a user