Changed order of rendering of sidebar hints to avoid artifacts due to depth buffer cleanup made by gizmo renderers

This commit is contained in:
enricoturri1966 2021-04-28 13:58:16 +02:00
parent 2c6472ebc3
commit 1863d622b5
2 changed files with 11 additions and 9 deletions

View file

@ -1681,8 +1681,10 @@ void GLCanvas3D::render()
if (m_picking_enabled)
m_mouse.scene_position = _mouse_to_3d(m_mouse.position.cast<coord_t>());
_render_current_gizmo();
// sidebar hints need to be rendered before the gizmos because the depth buffer
// could be invalidated by the following gizmo render methods
_render_selection_sidebar_hints();
_render_current_gizmo();
#if ENABLE_RENDER_PICKING_PASS
}
#endif // ENABLE_RENDER_PICKING_PASS