From 0d434f4ae1968fa8159d1f83cf8f0d7fe6dda59a Mon Sep 17 00:00:00 2001 From: Stone Li Date: Fri, 25 Oct 2024 12:05:22 +0800 Subject: [PATCH] FIX: fix an ams mapping issue JIRA: STUDIO-8116 Change-Id: I1e4d80cfb07c56fb8eb6b8dbd632d2edfb1100b0 Signed-off-by: Stone Li --- src/slic3r/GUI/SelectMachine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index 99071b454..3fe3e4830 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -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"] = "";