From 342593f1248c739a9f30c005ae710b9b9c7d0877 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 15 Mar 2018 01:42:44 +1100 Subject: Cleanup: rename BLI_array_count -> len Match naming convention used everywhere else. Count should only be used when this isn't directly accessible. --- source/blender/editors/object/object_vgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/object/object_vgroup.c') diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index c62ed74eaff..c6c20182ac3 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -1187,7 +1187,7 @@ static int *getSurroundingVerts(Mesh *me, int vert, int *count) } /* Append a and b verts to array, if not yet present. */ - k = BLI_array_count(verts); + k = BLI_array_len(verts); /* XXX Maybe a == b is enough? */ while (k-- && !(a == b && a == -1)) { if (verts[k] == a) @@ -1209,7 +1209,7 @@ static int *getSurroundingVerts(Mesh *me, int vert, int *count) } /* Do not free the array! */ - *count = BLI_array_count(verts); + *count = BLI_array_len(verts); return verts; } -- cgit v1.2.3