diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_query_uv.c | 10 | ||||
-rw-r--r-- | source/blender/bmesh/intern/bmesh_query_uv.h | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/bmesh/intern/bmesh_query_uv.c b/source/blender/bmesh/intern/bmesh_query_uv.c index 6d1a8dbbbd0..b9ea51f0c4d 100644 --- a/source/blender/bmesh/intern/bmesh_query_uv.c +++ b/source/blender/bmesh/intern/bmesh_query_uv.c @@ -135,11 +135,11 @@ bool BM_loop_uv_share_edge_check(BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_ bool BM_loop_uv_share_vert_check(BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset) { BLI_assert(l_a->v == l_b->v); - const MLoopUV *luv_a = BM_ELEM_CD_GET_VOID_P(l_a, cd_loop_uv_offset); - const MLoopUV *luv_b = BM_ELEM_CD_GET_VOID_P(l_b, cd_loop_uv_offset); - if (!equals_v2v2(luv_a->uv, luv_b->uv)) { - return false; - } + const MLoopUV *luv_a = BM_ELEM_CD_GET_VOID_P(l_a, cd_loop_uv_offset); + const MLoopUV *luv_b = BM_ELEM_CD_GET_VOID_P(l_b, cd_loop_uv_offset); + if (!equals_v2v2(luv_a->uv, luv_b->uv)) { + return false; + } return true; } diff --git a/source/blender/bmesh/intern/bmesh_query_uv.h b/source/blender/bmesh/intern/bmesh_query_uv.h index 115c51e2044..293715a8c69 100644 --- a/source/blender/bmesh/intern/bmesh_query_uv.h +++ b/source/blender/bmesh/intern/bmesh_query_uv.h @@ -37,16 +37,16 @@ float BM_face_uv_calc_cross(const BMFace *f, const int cd_loop_uv_offset) ATTR_W ATTR_NONNULL(); bool BM_loop_uv_share_edge_check(BMLoop *l_a, - BMLoop *l_b, - const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT + BMLoop *l_b, + const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); bool BM_edge_uv_share_vert_check(BMEdge *e, BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); bool BM_loop_uv_share_vert_check(BMLoop *l_a, - BMLoop *l_b, - const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT + BMLoop *l_b, + const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); #endif /* __BMESH_QUERY_UV_H__ */ |