From f27d87d30043c2bb09bee461ce903744e074de8b Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sun, 21 Dec 2014 22:14:58 +0500 Subject: Cycles: Replace magic constant in the code with actual node size --- intern/cycles/bvh/bvh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3