diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-14 17:42:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-14 17:53:20 +0300 |
commit | 342593f1248c739a9f30c005ae710b9b9c7d0877 (patch) | |
tree | ff7e83900ff88ea3bd444b0f2321e436f89e7096 /source/blender/editors/mesh | |
parent | c22c2ff060a27bcd565f84233d2bbfa968b00a3f (diff) |
Cleanup: rename BLI_array_count -> len
Match naming convention used everywhere else.
Count should only be used when this isn't directly accessible.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index 76a0d874a0b..3ce9257de0c 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -1762,7 +1762,7 @@ static void knife_find_line_hits(KnifeTool_OpData *kcd) } kcd->linehits = linehits; - kcd->totlinehit = BLI_array_count(linehits); + kcd->totlinehit = BLI_array_len(linehits); /* find position along screen line, used for sorting */ for (i = 0; i < kcd->totlinehit; i++) { diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index c84ba93ec0d..181fc4c0c52 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -4071,7 +4071,7 @@ static int loop_find_region( BLI_array_append(stack, l->f); BLI_gset_insert(visit_face_set, l->f); - while (BLI_array_count(stack) > 0) { + while (BLI_array_len(stack) > 0) { BMIter liter1, liter2; BMLoop *l1, *l2; @@ -4099,7 +4099,7 @@ static int loop_find_region( BLI_array_free(stack); *region_out = region; - return BLI_array_count(region); + return BLI_array_len(region); } static int verg_radial(const void *va, const void *vb) |