mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-20 11:32:31 -07:00
FIX:fixed display errors caused by dynamic thumbnails
jira:[STUDIO-10742] Change-Id: Ie429a98f79d770e80c07600b0da054feba0ce9bf (cherry picked from commit 519797ef19edf44d36e1d829ce0196f36cbdc3ef)
This commit is contained in:
parent
965b5b31cc
commit
3cc91d347f
2 changed files with 8 additions and 4 deletions
|
|
@ -900,8 +900,10 @@ void AmsMapingPopup::update(MachineObject* obj, const std::vector<FilamentInfo>&
|
|||
update_title(obj);
|
||||
|
||||
/*ext*/
|
||||
const auto& full_config = wxGetApp().preset_bundle->full_config();
|
||||
size_t nozzle_nums = full_config.option<ConfigOptionFloats>("nozzle_diameter")->values.size();
|
||||
//const auto& full_config = wxGetApp().preset_bundle->full_config();
|
||||
//size_t nozzle_nums = full_config.option<ConfigOptionFloats>("nozzle_diameter")->values.size();
|
||||
|
||||
size_t nozzle_nums = obj->m_extder_data.total_extder_count;
|
||||
|
||||
if (nozzle_nums == 1) {
|
||||
m_left_marea_panel->Hide();
|
||||
|
|
@ -1293,7 +1295,7 @@ void MappingItem::paintEvent(wxPaintEvent &evt)
|
|||
void MappingItem::render(wxDC &dc)
|
||||
{
|
||||
wxSize size = GetSize();
|
||||
|
||||
|
||||
#ifdef __WXMSW__
|
||||
wxMemoryDC memdc;
|
||||
wxBitmap bmp(size.x, size.y);
|
||||
|
|
|
|||
|
|
@ -1271,7 +1271,9 @@ bool SelectMachineDialog::do_ams_mapping(MachineObject *obj_)
|
|||
get_ams_mapping_result(ams_array, ams_array2, mapping_info);
|
||||
if (ams_array.empty()) {
|
||||
reset_ams_material();
|
||||
updata_thumbnail_data_after_connected_printer(); // FIX:update cur plate thumbnail
|
||||
if (m_print_type == FROM_NORMAL) {
|
||||
updata_thumbnail_data_after_connected_printer(); // FIX:update cur plate thumbnail
|
||||
}
|
||||
BOOST_LOG_TRIVIAL(info) << "ams_mapping_array=[]";
|
||||
} else {
|
||||
sync_ams_mapping_result(m_ams_mapping_result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue