mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-15 08:59:39 -07:00
FIX: fix the error display of default k value
jira: STUDIO-12546 Change-Id: Ibb674de256c306123c1ab7761945eda18704fe0e (cherry picked from commit d3174f35d81654a36a85194b94c2cec1ee263ded)
This commit is contained in:
parent
3f46a3d43d
commit
554ce5004c
2 changed files with 2 additions and 4 deletions
|
|
@ -1242,9 +1242,7 @@ void AMSMaterialsSetting::on_select_filament(wxCommandEvent &evt)
|
|||
PACalibResult default_item;
|
||||
default_item.cali_idx = -1;
|
||||
default_item.filament_id = ams_filament_id;
|
||||
std::vector<std::string> machine_list = {"N1", "N2S", "C11", "C12", "C13", "BL-P001", "BL-P002"};
|
||||
auto iter = std::find(machine_list.begin(), machine_list.end(), obj->printer_type);
|
||||
if (iter == machine_list.end()) {
|
||||
if (obj->is_support_auto_flow_calibration) {
|
||||
default_item.k_value = -1;
|
||||
default_item.n_coef = -1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1054,7 +1054,7 @@ void AMSLib::render_generic_text(wxDC &dc)
|
|||
show_k_value = false;
|
||||
}
|
||||
else if (m_info.cali_idx == -1 || (m_obj && (CalibUtils::get_selected_calib_idx(m_obj->pa_calib_tab, m_info.cali_idx) == -1))) {
|
||||
if (m_obj && m_obj->is_multi_extruders())
|
||||
if (m_obj && m_obj->is_support_auto_flow_calibration)
|
||||
show_k_value = false;
|
||||
else
|
||||
get_default_k_n_value(m_info.filament_id, m_info.k, m_info.n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue