mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-23 10:52:15 +00:00
FIX: sync some differences from master
and cherry pick I6d6b337176bb1dd9e99b51b67065e103d054201d jira: none Change-Id: I0902ab2986ec1b604eeb67062e886f9fe2151b6a (cherry picked from commit 90291d550b96de31c9c50814b19d88a453c57290)
This commit is contained in:
@@ -260,7 +260,12 @@ void CaliPASaveAutoPanel::sync_cali_result(const std::vector<PACalibResult>& cal
|
||||
}
|
||||
preset_names = default_naming(preset_names);
|
||||
|
||||
for (auto& item : cali_result) {
|
||||
std::vector<PACalibResult> sorted_cali_result = cali_result;
|
||||
std::sort(sorted_cali_result.begin(), sorted_cali_result.end(), [this](const PACalibResult &left, const PACalibResult& right) {
|
||||
return left.tray_id < right.tray_id;
|
||||
});
|
||||
|
||||
for (auto &item : sorted_cali_result) {
|
||||
bool result_failed = false;
|
||||
if (item.confidence != 0) {
|
||||
result_failed = true;
|
||||
|
||||
Reference in New Issue
Block a user