mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-28 03:11:47 +00:00
fix: use original project name
This commit is contained in:
@@ -181,7 +181,7 @@ void PrintJob::process(Ctl &ctl)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_project_name = truncate_string(m_project_name, 100);
|
const std::string transport_project_name = truncate_string(m_project_name, 100);
|
||||||
int curr_plate_idx = 0;
|
int curr_plate_idx = 0;
|
||||||
|
|
||||||
if (m_print_type == "from_normal") {
|
if (m_print_type == "from_normal") {
|
||||||
@@ -380,11 +380,11 @@ void PrintJob::process(Ctl &ctl)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.preset_name.empty() && m_print_type == "from_normal") { params.preset_name = wxString::Format("%s_plate_%d", m_project_name, curr_plate_idx).ToStdString(); }
|
if (params.preset_name.empty() && m_print_type == "from_normal") { params.preset_name = wxString::Format("%s_plate_%d", transport_project_name, curr_plate_idx).ToStdString(); }
|
||||||
if (params.project_name.empty()) {params.project_name = m_project_name;}
|
if (params.project_name.empty()) {params.project_name = transport_project_name;}
|
||||||
|
|
||||||
if (m_is_calibration_task) {
|
if (m_is_calibration_task) {
|
||||||
params.project_name = m_project_name;
|
params.project_name = transport_project_name;
|
||||||
params.origin_model_id = "";
|
params.origin_model_id = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user