Use the new function to perform picking and avoid going through any painting-related code paths.
!773 (merged)