FIX: report an error when slice in painting

Change-Id: I55ba3687e3988ae96d33833c03efd66ea3f607d8
This commit is contained in:
zhimin.zeng 2022-08-26 11:07:14 +08:00 committed by Lane.Wei
parent 06af15f60c
commit 8319ef604c
1 changed files with 1 additions and 0 deletions

View File

@ -1224,6 +1224,7 @@ wxBoxSizer* MainFrame::create_side_tools()
m_slice_btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent& event)
{
//this->m_plater->select_view_3D("Preview");
m_plater->update();
if (m_slice_select == eSliceAll)
wxPostEvent(m_plater, SimpleEvent(EVT_GLTOOLBAR_SLICE_ALL));
else