diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-08 12:09:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-08 12:09:37 +0400 |
commit | 4fc6ef1cf57a48626cbfa7fd9cc09de9bec29f92 (patch) | |
tree | 6e1c9f9381d5a6a8027e265ddb56ab909cc1b99c /source/blender/bmesh/operators/bmo_connect.c | |
parent | c1e475e527c49ed1a355472f560ae43a27af8f15 (diff) |
style cleanup: pep8 some C/style
Diffstat (limited to 'source/blender/bmesh/operators/bmo_connect.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_connect.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |