BMesh: use const for BM_vert_face_check

This commit is contained in:
Campbell Barton 2016-11-15 07:30:18 +11:00
parent e6ad6ff082
commit a3b61f0639
2 changed files with 3 additions and 3 deletions

View File

@ -867,10 +867,10 @@ int BM_vert_face_count_ex(const BMVert *v, int count_max)
*
* same as ``BM_vert_face_count(v) != 0`` or ``BM_vert_find_first_loop(v) == NULL``
*/
bool BM_vert_face_check(BMVert *v)
bool BM_vert_face_check(const BMVert *v)
{
if (v->e != NULL) {
BMEdge *e_iter, *e_first;
const BMEdge *e_iter, *e_first;
e_first = e_iter = v->e;
do {
if (e_iter->l != NULL) {

View File

@ -86,7 +86,7 @@ BMEdge *BM_vert_other_disk_edge(BMVert *v, BMEdge *e) ATTR_WARN_UNUSED_RESULT AT
bool BM_vert_is_edge_pair(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
bool BM_vert_edge_pair(BMVert *v, BMEdge **r_e_a, BMEdge **r_e_b);
bool BM_vert_face_check(BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
bool BM_vert_face_check(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
bool BM_vert_is_wire(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
BLI_INLINE bool BM_edge_is_wire(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();