mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Update transition_tridid to support newer ams
This commit is contained in:
@@ -3676,7 +3676,8 @@ void GUI_App::load_gcode(wxWindow* parent, wxString& input_file) const
|
||||
|
||||
wxString GUI_App::transition_tridid(int trid_id)
|
||||
{
|
||||
wxString maping_dict[8] = { "A", "B", "C", "D", "E", "F", "G" };
|
||||
//wxString maping_dict = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
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"};
|
||||
int id_index = ceil(trid_id / 4);
|
||||
int id_suffix = (trid_id + 1) % 4 == 0 ? 4 : (trid_id + 1) % 4;
|
||||
return wxString::Format("%s%d", maping_dict[id_index], id_suffix);
|
||||
|
||||
Reference in New Issue
Block a user