7963: Ray respects 2nd and 3rd quad angles

fixes #7963 
It's a very small thing but we need just one line here.