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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-05-05 04:31:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-05-06 15:23:59 +0300
commit5221093512588386a49570a64442a3e0278b5422 (patch)
tree076f2c1cf64f30181bd9efd9f848dd70406a89e8 /source
parent317544455e0443b34056d88bd1d643f7a90eb99d (diff)
Cleanup: naming
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_mesh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c
index a75ea6fa11c..2024541ccac 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -2900,13 +2900,13 @@ Batch **DRW_mesh_batch_cache_get_surface_shaded(Mesh *me)
MR_DATATYPE_POLY | MR_DATATYPE_SHADING;
MeshRenderData *rdata = mesh_render_data_create(me, datatype);
- const int mat_ct = mesh_render_data_mat_len_get(rdata);
+ const int mat_len = mesh_render_data_mat_len_get(rdata);
- cache->shaded_triangles = MEM_callocN(sizeof(*cache->shaded_triangles) * mat_ct, __func__);
+ cache->shaded_triangles = MEM_callocN(sizeof(*cache->shaded_triangles) * mat_len, __func__);
ElementList **el = mesh_batch_cache_get_shaded_triangles_in_order(rdata, cache);
- for (int i = 0; i < mat_ct; ++i) {
+ for (int i = 0; i < mat_len; ++i) {
cache->shaded_triangles[i] = Batch_create(
PRIM_TRIANGLES, mesh_batch_cache_get_tri_pos_shading_data(rdata, cache), el[i]);
}