FIX: Crash when perform cut

"keep upper" and "keep lower" may be not checked when check "Cut to parts"

Change-Id: I8f902d3013e465f0a672369f1b732cce5f30f66d
This commit is contained in:
zhimin.zeng 2023-05-15 09:45:43 +08:00 committed by Lane.Wei
parent ab17e418cf
commit 63acf7f6f0
1 changed files with 4 additions and 0 deletions

View File

@ -1450,6 +1450,10 @@ void GLGizmoAdvancedCut::render_cut_plane_input_window(float x, float y, float b
m_imgui->disabled_begin(has_connectors);
m_imgui->bbl_checkbox(_L("Cut to parts"), m_cut_to_parts);
if (m_cut_to_parts) {
m_keep_upper = true;
m_keep_lower = true;
}
m_imgui->disabled_end();
#if 0