Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-01-16 22:27:05 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-01-20 14:46:17 +0300
commitebc695ef2cb2bd410b34e1926c33ab134bbed0b6 (patch)
tree6d916ca815892eccdae3183ce1f3d70ff64a12cf /intern/cycles/bvh/bvh_build.cpp
parent20eb1fe3c1c7a312e0c7ca201ff7c89aa97814e0 (diff)
Cycles: Cleanup, better variable name
Diffstat (limited to 'intern/cycles/bvh/bvh_build.cpp')
-rw-r--r--intern/cycles/bvh/bvh_build.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp
index 8cf1495b33d..f0651db6c9d 100644
--- a/intern/cycles/bvh/bvh_build.cpp
+++ b/intern/cycles/bvh/bvh_build.cpp
@@ -130,12 +130,12 @@ void BVHBuild::add_reference_mesh(BoundBox& root, BoundBox& center, Mesh *mesh,
/* motion triangles */
if(attr_mP) {
- const size_t mesh_size = mesh->verts.size();
+ const size_t num_verts = mesh->verts.size();
const size_t num_steps = mesh->motion_steps - 1;
const float3 *vert_steps = attr_mP->data_float3();
for(size_t step = 0; step < num_steps; step++) {
- t.bounds_grow(vert_steps + step*mesh_size, bounds);
+ t.bounds_grow(vert_steps + step*num_verts, bounds);
}
type = PRIMITIVE_MOTION_TRIANGLE;
@@ -167,12 +167,12 @@ void BVHBuild::add_reference_mesh(BoundBox& root, BoundBox& center, Mesh *mesh,
/* motion curve */
if(curve_attr_mP) {
- const size_t mesh_size = mesh->curve_keys.size();
+ const size_t num_keys = mesh->curve_keys.size();
const size_t num_steps = mesh->motion_steps - 1;
const float3 *key_steps = curve_attr_mP->data_float3();
for(size_t step = 0; step < num_steps; step++) {
- curve.bounds_grow(k, key_steps + step*mesh_size, curve_radius, bounds);
+ curve.bounds_grow(k, key_steps + step*num_keys, curve_radius, bounds);
}
type = PRIMITIVE_MOTION_CURVE;