forked from bartvdbraak/blender
Fix compile error using Visual Studio 2012.
This commit is contained in:
parent
70e9191e15
commit
421346cefe
@ -762,21 +762,21 @@ void BM_mesh_elem_table_free(BMesh *bm, const char htype)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BMVert *BM_vert_at_index(BMesh *bm, int index)
|
BMVert *BM_vert_at_index(BMesh *bm, const int index)
|
||||||
{
|
{
|
||||||
BLI_assert((index >= 0) && (index < bm->totvert));
|
BLI_assert((index >= 0) && (index < bm->totvert));
|
||||||
BLI_assert((bm->elem_table_dirty & BM_VERT) == 0);
|
BLI_assert((bm->elem_table_dirty & BM_VERT) == 0);
|
||||||
return bm->vtable[index];
|
return bm->vtable[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
BMEdge *BM_edge_at_index(BMesh *bm, int index)
|
BMEdge *BM_edge_at_index(BMesh *bm, const int index)
|
||||||
{
|
{
|
||||||
BLI_assert((index >= 0) && (index < bm->totedge));
|
BLI_assert((index >= 0) && (index < bm->totedge));
|
||||||
BLI_assert((bm->elem_table_dirty & BM_EDGE) == 0);
|
BLI_assert((bm->elem_table_dirty & BM_EDGE) == 0);
|
||||||
return bm->etable[index];
|
return bm->etable[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
BMFace *BM_face_at_index(BMesh *bm, int index)
|
BMFace *BM_face_at_index(BMesh *bm, const int index)
|
||||||
{
|
{
|
||||||
BLI_assert((index >= 0) && (index < bm->totface));
|
BLI_assert((index >= 0) && (index < bm->totface));
|
||||||
BLI_assert((bm->elem_table_dirty & BM_FACE) == 0);
|
BLI_assert((bm->elem_table_dirty & BM_FACE) == 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user