mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-15 08:59:39 -07:00
FIX:fixed the issue of no mapping data when use ext only
jira:[none] Change-Id: I8dc94514ffa67c13a3c3f52f09e5ef0b997ad568 (cherry picked from commit 8cd51301ad6e32018873abae487dfcec1a2fd8e5)
This commit is contained in:
parent
0bd15792e5
commit
4f7e8e32a4
1 changed files with 12 additions and 12 deletions
|
|
@ -2541,18 +2541,18 @@ void SelectMachineDialog::on_send_print()
|
|||
std::string ams_mapping_array;
|
||||
std::string ams_mapping_array2;
|
||||
std::string ams_mapping_info;
|
||||
if (m_checkbox_list["use_ams"]->getValue() == "on")
|
||||
get_ams_mapping_result(ams_mapping_array,ams_mapping_array2, ams_mapping_info);
|
||||
else {
|
||||
json mapping_info_json = json::array();
|
||||
json item;
|
||||
if (m_filaments.size() > 0) {
|
||||
item["sourceColor"] = m_filaments[0].color.substr(1, 8);
|
||||
item["filamentType"] = m_filaments[0].type;
|
||||
mapping_info_json.push_back(item);
|
||||
ams_mapping_info = mapping_info_json.dump();
|
||||
}
|
||||
}
|
||||
//if (m_checkbox_list["use_ams"]->getValue() == "on")
|
||||
get_ams_mapping_result(ams_mapping_array,ams_mapping_array2, ams_mapping_info);
|
||||
//else {
|
||||
// json mapping_info_json = json::array();
|
||||
// json item;
|
||||
// if (m_filaments.size() > 0) {
|
||||
// item["sourceColor"] = m_filaments[0].color.substr(1, 8);
|
||||
// item["filamentType"] = m_filaments[0].type;
|
||||
// mapping_info_json.push_back(item);
|
||||
// ams_mapping_info = mapping_info_json.dump();
|
||||
// }
|
||||
//}
|
||||
|
||||
if (m_print_type == PrintFromType::FROM_NORMAL) {
|
||||
result = m_plater->send_gcode(m_print_plate_idx, [this](int export_stage, int current, int total, bool& cancel) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue