diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-10-09 15:53:29 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-10-09 15:53:29 +0300 |
commit | ad5f6a95dd8c76773306b4e7f891b6e97fbbcd20 (patch) | |
tree | cfeb167dfa96f4c2f58e6a6048cc8da27b392e31 | |
parent | b54447c0eb12d78cd1282db4cb3fb49a9be13b78 (diff) |
Cycles: Fix compilation error of CUDA kernel after recent decomposition changes
-rw-r--r-- | intern/cycles/util/util_transform.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/util/util_transform.h b/intern/cycles/util/util_transform.h index 44502737ec6..f01db64a79b 100644 --- a/intern/cycles/util/util_transform.h +++ b/intern/cycles/util/util_transform.h @@ -348,9 +348,9 @@ ccl_device_inline Transform transform_quick_inverse(Transform M) Transform R; float det = M.x.x*(M.z.z*M.y.y - M.z.y*M.y.z) - M.y.x*(M.z.z*M.x.y - M.z.y*M.x.z) + M.z.x*(M.y.z*M.x.y - M.y.y*M.x.z); if(det == 0.0f) { - M[0][0] += 1e-8f; - M[1][1] += 1e-8f; - M[2][2] += 1e-8f; + M.x.x += 1e-8f; + M.y.y += 1e-8f; + M.z.z += 1e-8f; det = M.x.x*(M.z.z*M.y.y - M.z.y*M.y.z) - M.y.x*(M.z.z*M.x.y - M.z.y*M.x.z) + M.z.x*(M.y.z*M.x.y - M.y.y*M.x.z); } det = (det != 0.0f)? 1.0f/det: 0.0f; |