From 791a0852e8d7f17887896245ef62a826b2228648 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 22 Feb 2016 16:33:42 +0100 Subject: Cycles: Name cleanup and some comments in BVH code --- intern/cycles/bvh/bvh_build.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'intern/cycles/bvh/bvh_build.cpp') diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp index 9f1fb9c520d..6d785dffadf 100644 --- a/intern/cycles/bvh/bvh_build.cpp +++ b/intern/cycles/bvh/bvh_build.cpp @@ -243,10 +243,10 @@ BVHNode* BVHBuild::run() spatial_storage.resize(1); size_t num_bins = max(root.size(), (int)BVHParams::NUM_SPATIAL_BINS) - 1; foreach(BVHSpatialStorage &storage, spatial_storage) { - storage.spatial_right_bounds.clear(); - storage.spatial_right_bounds.resize(num_bins); - storage.spatial_indices.clear(); - storage.spatial_indices.reserve(num_bins); + storage.right_bounds.clear(); + storage.right_bounds.resize(num_bins); + storage.reference_indices.clear(); + storage.reference_indices.reserve(num_bins); } } -- cgit v1.2.3