Fix the slice button status incorrect issue after auto-arrange

when a plate is locked, the slice result is also affected by auto-arrange

Change-Id: I83b3400d07fd55c42422b358d4b9ed7a179bd3a7
This commit is contained in:
lane.wei 2022-09-21 20:45:07 +08:00 committed by Lane.Wei
parent 613b433bfa
commit d2eb526ea3
1 changed files with 2 additions and 1 deletions

View File

@ -4009,7 +4009,8 @@ unsigned int Plater::priv::update_background_process(bool force_validation, bool
//BBS: add slice&&print status update logic //BBS: add slice&&print status update logic
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(", Line %1%: background data valid, return_state=%2%")%__LINE__%return_state; BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(", Line %1%: background data valid, return_state=%2%")%__LINE__%return_state;
if (background_process.finished()) PartPlate* cur_plate = background_process.get_current_plate();
if (background_process.finished() && cur_plate && cur_plate->is_slice_result_valid())
{ {
ready_to_slice = false; ready_to_slice = false;
this->main_frame->update_slice_print_status(MainFrame::eEventSliceUpdate, false); this->main_frame->update_slice_print_status(MainFrame::eEventSliceUpdate, false);