diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-09-15 10:39:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-09-15 10:39:33 +0300 |
commit | ec54a08d307b1b1d8af164719ea447ec8f7a40f7 (patch) | |
tree | ed7bbb3c2517d710a7afca332127d1802e557a2b | |
parent | fe28e350e96a8b137354e9038c6d25a9145d068d (diff) |
Revert "Cycles: Tweak empty boundbox children"
This reverts commit ecbfa31caaadb03c53c0fe1459718b99613c8804.
Original commit broke logic in nodes re-fitting. That area can
access non-existing children momentarely. Not sure what would
be best solution here, for now simply reverting the change/
-rw-r--r-- | intern/cycles/bvh/bvh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp index bb326d48502..39b2a0cf436 100644 --- a/intern/cycles/bvh/bvh.cpp +++ b/intern/cycles/bvh/bvh.cpp @@ -885,7 +885,7 @@ void QBVH::pack_aligned_node(int idx, data[5][i] = FLT_MAX; data[6][i] = -FLT_MAX; - data[7][i] = __int_as_float(INT_MAX); + data[7][i] = __int_as_float(0); } memcpy(&pack.nodes[idx], data, sizeof(float4)*BVH_QNODE_SIZE); @@ -968,7 +968,7 @@ void QBVH::pack_unaligned_node(int idx, data[11][i] = -FLT_MAX; data[12][i] = -FLT_MAX; - data[13][i] = __int_as_float(INT_MAX); + data[13][i] = __int_as_float(0); } memcpy(&pack.nodes[idx], data, sizeof(float4)*BVH_UNALIGNED_QNODE_SIZE); |