mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 07:56:24 -06:00
FIX:fixed k value not displaying
Change-Id: I46ea4877174da1a1b82e5005aa328ab10584a0cb
This commit is contained in:
parent
35fc842fe9
commit
d2b59b3b61
1 changed files with 4 additions and 6 deletions
|
@ -801,17 +801,15 @@ void AMSLib::render(wxDC &dc)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
auto pot = wxPoint(0, 0);
|
auto pot = wxPoint(0, 0);
|
||||||
if (m_obj && m_obj->is_function_supported(PrinterFunction::FUNC_EXTRUSION_CALI)) {
|
if (m_obj) {
|
||||||
pot = wxPoint((libsize.x - tsize.x) / 2, (libsize.y - tsize.y) / 2 - FromDIP(9));
|
pot = wxPoint((libsize.x - tsize.x) / 2, (libsize.y - tsize.y) / 2 - FromDIP(9));
|
||||||
} else {
|
}
|
||||||
pot = wxPoint((libsize.x - tsize.x) / 2, (libsize.y - tsize.y) / 2 + FromDIP(3));
|
|
||||||
}
|
|
||||||
dc.DrawText(m_info.material_name, pot);
|
dc.DrawText(m_info.material_name, pot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//draw k&n
|
//draw k&n
|
||||||
if (m_obj && m_obj->is_function_supported(PrinterFunction::FUNC_EXTRUSION_CALI)) {
|
if (m_obj) {
|
||||||
if (m_show_kn){
|
if (m_show_kn){
|
||||||
wxString str_k = wxString::Format("K %1.3f", m_info.k);
|
wxString str_k = wxString::Format("K %1.3f", m_info.k);
|
||||||
wxString str_n = wxString::Format("N %1.3f", m_info.n);
|
wxString str_n = wxString::Format("N %1.3f", m_info.n);
|
||||||
|
@ -2771,7 +2769,7 @@ void AMSControl::UpdateAms(std::vector<AMSinfo> info, bool keep_selection, bool
|
||||||
if (ifo.ams_id == cans->amsIndex) {
|
if (ifo.ams_id == cans->amsIndex) {
|
||||||
cans->amsCans->m_info = ifo;
|
cans->amsCans->m_info = ifo;
|
||||||
cans->amsCans->Update(ifo);
|
cans->amsCans->Update(ifo);
|
||||||
cans->amsCans->show_sn_value(has_extrusion_cali);
|
cans->amsCans->show_sn_value(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue