Cleanup: use '_len' instead of '_size' w/ BLI API
- When returning the number of items in a collection use BLI_*_len() - Keep _size() for size in bytes. - Keep _count() for data structures that don't store length (hint this isn't a simple getter). See P611 to apply instead of manually resolving conflicts.
This commit is contained in:
@@ -106,7 +106,7 @@ void bmo_triangle_fill_exec(BMesh *bm, BMOperator *op)
|
||||
/* sf_edge = */ BLI_scanfill_edge_add(&sf_ctx, UNPACK2(sf_verts));
|
||||
/* sf_edge->tmp.p = e; */ /* UNUSED */
|
||||
}
|
||||
nors_tot = BLI_ghash_size(sf_vert_map);
|
||||
nors_tot = BLI_ghash_len(sf_vert_map);
|
||||
BLI_ghash_free(sf_vert_map, NULL, NULL);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user