code cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 20 Apr 2012 16:55:47 +0000 (16:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 20 Apr 2012 16:55:47 +0000 (16:55 +0000)
commitb26865ba99a8a9dea483a71b757d9eb2de0f7198
treedaca82eebccb3a150920ca9200360f2e35291940
parent91dc245f93d38307c586b445b91a49ea6cea32e1
code cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when the type is known (saves switch statement check on the type).

Add asserts so the correct types are ensured.
13 files changed:
source/blender/bmesh/intern/bmesh_marking.c
source/blender/bmesh/intern/bmesh_mesh_conv.c
source/blender/bmesh/operators/bmo_create.c
source/blender/bmesh/operators/bmo_subdivide.c
source/blender/editors/mesh/editmesh_loopcut.c
source/blender/editors/mesh/editmesh_rip.c
source/blender/editors/mesh/editmesh_select.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/object/object_hook.c
source/blender/editors/object/object_vgroup.c
source/blender/editors/space_view3d/view3d_select.c
source/blender/editors/transform/transform.c
source/blender/editors/uvedit/uvedit_ops.c