mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX:add protection when amsmapping popup
Change-Id: Ia68e5b14c0286f84133686b45d3d8b851b7ffd82
This commit is contained in:
parent
5e6cfb069a
commit
185235dd93
1 changed files with 5 additions and 1 deletions
|
@ -3207,7 +3207,11 @@ void SelectMachineDialog::set_default()
|
|||
pos.y += item->GetRect().height;
|
||||
m_mapping_popup.Move(pos);
|
||||
|
||||
if (obj_ && obj_->has_ams() && ams_check->GetValue()) {
|
||||
if (obj_ &&
|
||||
obj_->has_ams() &&
|
||||
ams_check->GetValue() &&
|
||||
obj_->dev_id == m_printer_last_select)
|
||||
{
|
||||
m_mapping_popup.set_parent_item(item);
|
||||
m_mapping_popup.set_current_filament_id(extruder);
|
||||
m_mapping_popup.set_tag_texture(materials[extruder]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue