diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-21 20:14:58 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-25 00:50:49 +0300 |
commit | f27d87d30043c2bb09bee461ce903744e074de8b (patch) | |
tree | 6a4be2bd44752d8d2523d32acb12eefbd91ee9fa /intern | |
parent | f4a959f7348f542239962896bc239322ac301bff (diff) |
Cycles: Replace magic constant in the code with actual node size
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/bvh/bvh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp index 84b854089d7..1bddff3b1b6 100644 --- a/intern/cycles/bvh/bvh.cpp +++ b/intern/cycles/bvh/bvh.cpp @@ -636,7 +636,7 @@ void RegularBVH::refit_nodes() void RegularBVH::refit_node(int idx, bool leaf, BoundBox& bbox, uint& visibility) { - int4 *data = &pack.nodes[idx*4]; + int4 *data = &pack.nodes[idx*BVH_NODE_SIZE]; int c0 = data[3].x; int c1 = data[3].y; |