Cleanup: remove unused function BM_mesh_active_elem_index_get
Getting the active index without knowing the element type doesn't seem to have any practical use.
This commit is contained in:
@@ -856,12 +856,6 @@ int BM_mesh_active_vert_index_get(BMesh *bm)
|
||||
return v ? BM_elem_index_get(v) : -1;
|
||||
}
|
||||
|
||||
int BM_mesh_active_elem_index_get(BMesh *bm)
|
||||
{
|
||||
const BMElem *e = BM_mesh_active_elem_get(bm);
|
||||
return e ? BM_elem_index_get(e) : -1;
|
||||
}
|
||||
|
||||
BMFace *BM_mesh_active_face_get(BMesh *bm, const bool is_sloppy, const bool is_selected)
|
||||
{
|
||||
if (bm->act_face && (!is_selected || BM_elem_flag_test(bm->act_face, BM_ELEM_SELECT))) {
|
||||
|
||||
@@ -123,7 +123,7 @@ void BM_mesh_active_face_set(BMesh *bm, BMFace *f);
|
||||
int BM_mesh_active_face_index_get(BMesh *bm, bool is_sloppy, bool is_selected);
|
||||
int BM_mesh_active_edge_index_get(BMesh *bm);
|
||||
int BM_mesh_active_vert_index_get(BMesh *bm);
|
||||
int BM_mesh_active_elem_index_get(BMesh *bm);
|
||||
|
||||
BMFace *BM_mesh_active_face_get(BMesh *bm, bool is_sloppy, bool is_selected);
|
||||
BMEdge *BM_mesh_active_edge_get(BMesh *bm);
|
||||
BMVert *BM_mesh_active_vert_get(BMesh *bm);
|
||||
|
||||
Reference in New Issue
Block a user