FIX: cannot cali for single nozzle printer
jira: none Change-Id: I1cc0e5e4b0f9db2a66694c894f96a14047fde9e5
This commit is contained in:
parent
b7176bfdd1
commit
7bd3a5218a
|
@ -1656,7 +1656,12 @@ void CalibrationPresetPage::sync_ams_info(MachineObject* obj)
|
||||||
{
|
{
|
||||||
if (!obj) return;
|
if (!obj) return;
|
||||||
|
|
||||||
std::map<int, DynamicPrintConfig> full_filament_ams_list = wxGetApp().sidebar().build_filament_ams_list(obj);
|
std::map<int, DynamicPrintConfig> old_full_filament_ams_list = wxGetApp().sidebar().build_filament_ams_list(obj);
|
||||||
|
std::map<int, DynamicPrintConfig> full_filament_ams_list;
|
||||||
|
for (auto ams_item : old_full_filament_ams_list) {
|
||||||
|
int key = ams_item.first & 0x0FFFF;
|
||||||
|
full_filament_ams_list[key] = std::move(ams_item.second);
|
||||||
|
}
|
||||||
|
|
||||||
// sync filament_ams_list from obj ams list
|
// sync filament_ams_list from obj ams list
|
||||||
filament_ams_list.clear();
|
filament_ams_list.clear();
|
||||||
|
|
|
@ -1128,6 +1128,11 @@ void MachineObject::reset_mapping_result(std::vector<FilamentInfo>& result)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool MachineObject::is_multi_extruders() const
|
||||||
|
{
|
||||||
|
return m_nozzle_data.total_nozzle_count > 1;
|
||||||
|
}
|
||||||
|
|
||||||
bool MachineObject::is_bbl_filament(std::string tag_uid)
|
bool MachineObject::is_bbl_filament(std::string tag_uid)
|
||||||
{
|
{
|
||||||
if (tag_uid.empty())
|
if (tag_uid.empty())
|
||||||
|
|
|
@ -571,6 +571,7 @@ public:
|
||||||
// exceed index start with 0
|
// exceed index start with 0
|
||||||
bool is_mapping_exceed_filament(std::vector<FilamentInfo>& result, int &exceed_index);
|
bool is_mapping_exceed_filament(std::vector<FilamentInfo>& result, int &exceed_index);
|
||||||
void reset_mapping_result(std::vector<FilamentInfo>& result);
|
void reset_mapping_result(std::vector<FilamentInfo>& result);
|
||||||
|
bool is_multi_extruders() const;
|
||||||
|
|
||||||
/*online*/
|
/*online*/
|
||||||
bool online_rfid;
|
bool online_rfid;
|
||||||
|
|
|
@ -2305,7 +2305,6 @@ void Sidebar::auto_calc_flushing_volumes(const int modify_id)
|
||||||
auto& printer_config = preset_bundle->printers.get_edited_preset().config;
|
auto& printer_config = preset_bundle->printers.get_edited_preset().config;
|
||||||
const auto& full_config = wxGetApp().preset_bundle->full_config();
|
const auto& full_config = wxGetApp().preset_bundle->full_config();
|
||||||
auto& ams_multi_color_filament = preset_bundle->ams_multi_color_filment;
|
auto& ams_multi_color_filament = preset_bundle->ams_multi_color_filment;
|
||||||
auto& ams_filament_list = preset_bundle->filament_ams_list;
|
|
||||||
|
|
||||||
size_t nozzle_nums = preset_bundle->get_printer_extruder_count();
|
size_t nozzle_nums = preset_bundle->get_printer_extruder_count();
|
||||||
for (size_t nozzle_id = 0; nozzle_id < nozzle_nums; ++nozzle_id)
|
for (size_t nozzle_id = 0; nozzle_id < nozzle_nums; ++nozzle_id)
|
||||||
|
|
Loading…
Reference in New Issue