From 494437f32451bc55c63010ad31482c85a28ea4ba Mon Sep 17 00:00:00 2001 From: "maosheng.wei" Date: Mon, 29 May 2023 10:21:07 +0800 Subject: [PATCH] FIX: print all and send all enable issue Change-Id: Ia7dc22670eb1bc00f925254c760397e735a52496 --- src/slic3r/GUI/PartPlate.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/slic3r/GUI/PartPlate.cpp b/src/slic3r/GUI/PartPlate.cpp index 3395ba61d..69c0c7f74 100644 --- a/src/slic3r/GUI/PartPlate.cpp +++ b/src/slic3r/GUI/PartPlate.cpp @@ -4345,14 +4345,18 @@ bool PartPlateList::is_all_slice_results_valid() const //check whether all plates's slice result valid for print bool PartPlateList::is_all_slice_results_ready_for_print() const { - for (unsigned int i = 0; i < (unsigned int)m_plate_list.size(); ++i) - { - if (!m_plate_list[i]->is_slice_result_ready_for_print() - && m_plate_list[i]->has_printable_instances() - ) - return false; + bool res = false; + + for (unsigned int i = 0; i < (unsigned int) m_plate_list.size(); ++i) { + if (!m_plate_list[i]->empty() && !m_plate_list[i]->is_slice_result_valid()) { + return false; + } + if (m_plate_list[i]->is_slice_result_ready_for_print() && m_plate_list[i]->has_printable_instances()) { + res = true; + } } - return true; + + return res; }