Fix T45904: Cycles bug after recent triangle intersect changes

Calculated cross product from wrong vectors by accident.
This commit is contained in:
Sergey Sharybin 2015-08-25 18:19:03 +02:00
parent 9e188fdd53
commit 7dc75ea8f4
Notes: blender-bot 2023-02-14 08:44:00 +01:00
Referenced by issue #45904, cycles bug
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ ccl_device_inline bool triangle_intersect(KernelGlobals *kg,
if(kernel_tex_fetch(__prim_visibility, triAddr) & visibility)
#endif
{
if(len_squared(cross(tri_a, tri_b)) < 1e-14f) {
if(len_squared(cross(A, B)) < 1e-12f) {
return false;
}
/* Normalize U, V, W, and T. */