diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-01-20 19:54:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-01-20 19:54:17 +0300 |
commit | 43268c1997871a02c06e686d61892cb48753d1ed (patch) | |
tree | 62dde7dfa9751233a2089de096e3ad22d7f76527 /intern/cycles/bvh | |
parent | a1c21e0b5049ebe342707497021ce7e1f2e624e7 (diff) |
Cycles: Use more const qualifiers to avoid possible issues
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r-- | intern/cycles/bvh/bvh_build.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp index 9ff68333c80..1ce3a754460 100644 --- a/intern/cycles/bvh/bvh_build.cpp +++ b/intern/cycles/bvh/bvh_build.cpp @@ -114,7 +114,7 @@ BVHBuild::~BVHBuild() void BVHBuild::add_reference_triangles(BoundBox& root, BoundBox& center, Mesh *mesh, int i) { - Attribute *attr_mP = NULL; + const Attribute *attr_mP = NULL; if(mesh->has_motion_blur()) { attr_mP = mesh->attributes.find(ATTR_STD_MOTION_VERTEX_POSITION); } @@ -222,11 +222,11 @@ void BVHBuild::add_reference_triangles(BoundBox& root, BoundBox& center, Mesh *m void BVHBuild::add_reference_curves(BoundBox& root, BoundBox& center, Mesh *mesh, int i) { - Attribute *curve_attr_mP = NULL; + const Attribute *curve_attr_mP = NULL; if(mesh->has_motion_blur()) { curve_attr_mP = mesh->curve_attributes.find(ATTR_STD_MOTION_VERTEX_POSITION); } - size_t num_curves = mesh->num_curves(); + const size_t num_curves = mesh->num_curves(); for(uint j = 0; j < num_curves; j++) { const Mesh::Curve curve = mesh->get_curve(j); const float *curve_radius = &mesh->curve_radius[0]; |