Follow-up to previous commits on gizmo grabbers picking (use of centralized static constant for ids and added comments)

This commit is contained in:
Enrico Turri 2019-03-15 12:07:25 +01:00
parent ef939905b1
commit bc3036d777
3 changed files with 11 additions and 5 deletions

View file

@ -6294,7 +6294,7 @@ void GLCanvas3D::_picking_pass() const
else
{
m_hover_volume_id = -1;
m_gizmos.set_hover_id(inside && volume_id <= 254 * 255 * 255 ? (254 * 255 * 255 - volume_id) : -1);
m_gizmos.set_hover_id(inside && volume_id <= GLGizmoBase::BASE_ID ? (GLGizmoBase::BASE_ID - volume_id) : -1);
}
_update_volumes_hover_state();