mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-15 17:09:43 -07: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:
parent
45dd04c899
commit
d71b1b57e2
1 changed files with 15 additions and 2 deletions
|
|
@ -487,10 +487,23 @@ void AMSMaterialsSetting::on_select_reset(wxCommandEvent& event) {
|
|||
if (obj) {
|
||||
// set filament
|
||||
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){
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue