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:
authorCampbell Barton <campbell@blender.org>2022-03-25 04:04:20 +0300
committerCampbell Barton <campbell@blender.org>2022-03-25 04:04:20 +0300
commit4d46fac65d9946382c4be5b3842660e77468f00b (patch)
treec2910a4ca0b2d345007bf853d6484a1b9e53e4e1 /source/blender/modifiers
parentc594cfbe50497fdc365b3f327b643de507cda02f (diff)
Cleanup: use count or num instead of nbr
Follow conventions from T85728.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_skin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/modifiers/intern/MOD_skin.c b/source/blender/modifiers/intern/MOD_skin.c
index e42223e2ad5..6ab6dc5d4c8 100644
--- a/source/blender/modifiers/intern/MOD_skin.c
+++ b/source/blender/modifiers/intern/MOD_skin.c
@@ -450,18 +450,18 @@ static Frame **collect_hull_frames(
{
SkinNode *f;
Frame **hull_frames;
- int nbr, i;
+ int hull_frames_num, i;
(*tothullframe) = emap[v].count;
hull_frames = MEM_calloc_arrayN(
(*tothullframe), sizeof(Frame *), "hull_from_frames.hull_frames");
- i = 0;
- for (nbr = 0; nbr < emap[v].count; nbr++) {
- const MEdge *e = &medge[emap[v].indices[nbr]];
+ hull_frames_num = 0;
+ for (i = 0; i < emap[v].count; i++) {
+ const MEdge *e = &medge[emap[v].indices[i]];
f = &frames[BKE_mesh_edge_other_vert(e, v)];
/* Can't have adjacent branch nodes yet */
if (f->totframe) {
- hull_frames[i++] = &f->frames[0];
+ hull_frames[hull_frames_num++] = &f->frames[0];
}
else {
(*tothullframe)--;