Fix T66691: Ceash trying to render the 2.80 splash image

Was caused by ray direction becoming NaN after some of the bounces.
This commit is contained in:
Sergey Sharybin 2019-07-11 12:59:19 +02:00
parent 03d8bfb144
commit d663048696
Notes: blender-bot 2024-01-31 11:35:08 +01:00
Referenced by issue #66898, Object Mode
Referenced by issue #66691, Assert trying to render the 2.80 splash image
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ ccl_device_inline bool scene_intersect_valid(const Ray *ray)
* From production scenes so far it seems it's enough to test first element
* only.
*/
return isfinite(ray->P.x);
return isfinite_safe(ray->P.x) && isfinite_safe(ray->D.x);
}
/* Note: ray is passed by value to work around a possible CUDA compiler bug. */