mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: STUDIO-3745 open gcode.3mf, unable export to file
Change-Id: Ib8a45cb38f28438ecc4d2a772f1437dbd324078a
This commit is contained in:
@@ -4728,6 +4728,30 @@ bool PartPlateList::is_all_slice_results_ready_for_print() const
|
||||
return res;
|
||||
}
|
||||
|
||||
//check whether all plates' slice result valid for export to file
|
||||
bool PartPlateList::is_all_slice_result_ready_for_export() const
|
||||
{
|
||||
bool res = false;
|
||||
|
||||
for (unsigned int i = 0; i < (unsigned int) m_plate_list.size(); ++i) {
|
||||
if (!m_plate_list[i]->empty()) {
|
||||
if (m_plate_list[i]->is_all_instances_unprintable()) {
|
||||
continue;
|
||||
}
|
||||
if (!m_plate_list[i]->is_slice_result_ready_for_print()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (m_plate_list[i]->is_slice_result_ready_for_print()) {
|
||||
if (!m_plate_list[i]->has_printable_instances()) {
|
||||
return false;
|
||||
}
|
||||
res = true;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
//check whether all plates ready for slice
|
||||
bool PartPlateList::is_all_plates_ready_for_slice() const
|
||||
|
||||
Reference in New Issue
Block a user