mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX: the default value is not correct
and the pa profile not display in AMS setting dialog after switch nozzle diameter jira: 8620 Change-Id: If40bfe41ae13f5199f09baae3af09757498f1edf (cherry picked from commit f3064e223df468eb9901e65c8f0abab2dae91f15)
This commit is contained in:
@@ -1127,6 +1127,10 @@ void AMSMaterialsSetting::on_select_filament(wxCommandEvent &evt)
|
|||||||
m_input_k_val->GetTextCtrl()->SetValue(float_to_string_with_precision(m_pa_profile_items[cali_select_idx].k_value));
|
m_input_k_val->GetTextCtrl()->SetValue(float_to_string_with_precision(m_pa_profile_items[cali_select_idx].k_value));
|
||||||
m_input_n_val->GetTextCtrl()->SetValue(float_to_string_with_precision(m_pa_profile_items[cali_select_idx].n_coef));
|
m_input_n_val->GetTextCtrl()->SetValue(float_to_string_with_precision(m_pa_profile_items[cali_select_idx].n_coef));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
m_input_k_val->GetTextCtrl()->SetValue(float_to_string_with_precision(m_pa_profile_items[0].k_value));
|
||||||
|
m_input_n_val->GetTextCtrl()->SetValue(float_to_string_with_precision(m_pa_profile_items[0].n_coef));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!ams_filament_id.empty()) {
|
if (!ams_filament_id.empty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user