FIX:not render plate pick when open paint gizmo

Jira: STUDIO-5785
Change-Id: I88bb10e525319eb4428b8cc59a8110565eeb3be6
This commit is contained in:
zhou.xu 2024-01-16 18:03:21 +08:00 committed by Lane.Wei
parent 4bcb70f079
commit c31f6e5bf3
1 changed files with 4 additions and 1 deletions

View File

@ -6573,7 +6573,10 @@ void GLCanvas3D::_picking_pass()
glsafe(::glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT));
//BBS: only render plate in view 3D
if (m_canvas_type == ECanvasType::CanvasView3D && m_gizmos.get_current_type() == GLGizmosManager::EType::Undefined) {
bool is_paint_gizmo=(m_gizmos.get_current_type() == GLGizmosManager::EType::FdmSupports ||
m_gizmos.get_current_type() == GLGizmosManager::EType::MmuSegmentation ||
m_gizmos.get_current_type() == GLGizmosManager::EType::Seam);
if (m_canvas_type == ECanvasType::CanvasView3D && !is_paint_gizmo) {
_render_plates_for_picking();
}