From cb6f4160cce25fb3f233e0e0a623d035836caa32 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 27 Mar 2013 10:14:09 +0000 Subject: api cleanup: replace BMO_vert_edge_flags_count() with more reusable function - BMO_iter_elem_count_flag(). closely matching existing BM_iter_elem_count_flag() function but checks tool-flags instead. --- source/blender/bmesh/intern/bmesh_operator_api.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/blender/bmesh/intern/bmesh_operator_api.h') diff --git a/source/blender/bmesh/intern/bmesh_operator_api.h b/source/blender/bmesh/intern/bmesh_operator_api.h index 978aec0c610..180bc53c2e3 100644 --- a/source/blender/bmesh/intern/bmesh_operator_api.h +++ b/source/blender/bmesh/intern/bmesh_operator_api.h @@ -83,7 +83,7 @@ struct GHashIterator; #define BMO_elem_flag_toggle( bm, ele, oflag) _bmo_elem_flag_toggle (bm, (ele)->oflags, oflag) BLI_INLINE short _bmo_elem_flag_test( BMesh *bm, BMFlagLayer *oflags, const short oflag); -BLI_INLINE short _bmo_elem_flag_test_bool(BMesh *bm, BMFlagLayer *oflags, const short oflag); +BLI_INLINE bool _bmo_elem_flag_test_bool(BMesh *bm, BMFlagLayer *oflags, const short oflag); BLI_INLINE void _bmo_elem_flag_enable( BMesh *bm, BMFlagLayer *oflags, const short oflag); BLI_INLINE void _bmo_elem_flag_disable( BMesh *bm, BMFlagLayer *oflags, const short oflag); BLI_INLINE void _bmo_elem_flag_set( BMesh *bm, BMFlagLayer *oflags, const short oflag, int val); @@ -391,10 +391,6 @@ int BMO_slot_map_count(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_na void BMO_slot_map_insert(BMOperator *op, BMOpSlot *slot, const void *element, const void *data, const int len); -/* Counts the number of edges with tool flag toolflag around - */ -int BMO_vert_edge_flags_count(BMesh *bm, BMVert *v, const short oflag); - /* flags all elements in a mapping. note that the mapping must only have * bmesh elements in it.*/ void BMO_slot_map_to_flag(BMesh *bm, BMOpSlot slot_args[BMO_OP_MAX_SLOTS], -- cgit v1.2.3