mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: the ext does not support filament backup; add protection
jira: [STUDIO-10812] Change-Id: I01b6de1e23d00932b373920105542b8e8770e809 (cherry picked from commit 19697b2dcd2a4f20d977379cc76dff8e02e938f2)
This commit is contained in:
@@ -2025,6 +2025,12 @@ void AmsReplaceMaterialDialog::update_mapping_result( std::vector<FilamentInfo>
|
||||
{
|
||||
m_tray_used.clear();
|
||||
for (int i = 0; i < result.size(); i++) {
|
||||
|
||||
if (result[i].tray_id == VIRTUAL_TRAY_MAIN_ID || result[i].tray_id == VIRTUAL_TRAY_DEPUTY_ID)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
m_tray_used.push_back(wxGetApp().transition_tridid(result[i].tray_id).ToStdString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3787,6 +3787,12 @@ void GUI_App::load_gcode(wxWindow* parent, wxString& input_file) const
|
||||
|
||||
wxString GUI_App::transition_tridid(int trid_id) const
|
||||
{
|
||||
if (trid_id == VIRTUAL_TRAY_MAIN_ID || trid_id == VIRTUAL_TRAY_DEPUTY_ID)
|
||||
{
|
||||
assert(0);
|
||||
return wxString("Ext");
|
||||
}
|
||||
|
||||
wxString maping_dict[] = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" };
|
||||
|
||||
if (trid_id >= 128 * 4) {
|
||||
|
||||
Reference in New Issue
Block a user