Tech ENABLE_RAYCAST_PICKING - Raytraced picking of Scale Gizmo

This commit is contained in:
enricoturri1966 2022-06-13 14:46:06 +02:00
parent 9962a5a873
commit 0cedf331b1
4 changed files with 20 additions and 4 deletions

View file

@ -885,7 +885,7 @@ void GLGizmoRotate3D::on_render()
#if ENABLE_RAYCAST_PICKING
void GLGizmoRotate3D::on_register_raycasters_for_picking()
{
// this gizmo is rendered on top of the scene, so the raytraced picker should take it into account
// the gizmo grabbers are rendered on top of the scene, so the raytraced picker should take it into account
m_parent.set_raycaster_gizmos_on_top(true);
for (GLGizmoRotate& g : m_gizmos) {
g.register_raycasters_for_picking(true);