diff options
-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; |