FIX: fix an ams mapping issue

JIRA: STUDIO-8116

Change-Id: I1e4d80cfb07c56fb8eb6b8dbd632d2edfb1100b0
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2024-10-25 12:05:22 +08:00 committed by Lane.Wei
parent b18b50bd64
commit 0d434f4ae1
1 changed files with 2 additions and 2 deletions

View File

@ -1879,9 +1879,9 @@ bool SelectMachineDialog::get_ams_mapping_result(std::string &mapping_array_str,
} else {
json j = json::array();
json mapping_info_json = json::array();
for (int i = 0; i < wxGetApp().preset_bundle->filament_presets.size(); i++) {
int tray_id = -1;
/* JIRA: 8116, fix a ams mapping issue, modify -1 to -2 */
int tray_id = -2;
json mapping_item;
mapping_item["ams"] = tray_id;
mapping_item["targetColor"] = "";