From 4fc6ef1cf57a48626cbfa7fd9cc09de9bec29f92 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 8 Apr 2012 08:09:37 +0000 Subject: style cleanup: pep8 some C/style --- source/blender/bmesh/operators/bmo_connect.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/bmesh/operators/bmo_connect.c') diff --git a/source/blender/bmesh/operators/bmo_connect.c b/source/blender/bmesh/operators/bmo_connect.c index 07be4cdd5c1..69a9b75b258 100644 --- a/source/blender/bmesh/operators/bmo_connect.c +++ b/source/blender/bmesh/operators/bmo_connect.c @@ -147,11 +147,12 @@ static BMVert *get_outer_vert(BMesh *bm, BMEdge *e) /* Clamp x to the interval {0..len-1}, with wrap-around */ static int clamp_index(const int x, const int len) { - if (x >= 0) + if (x >= 0) { return x % len; + } else { int r = len - (-x % len); - if(r == len) + if (r == len) return len - 1; else return r; -- cgit v1.2.3