Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-08-11 09:40:35 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-11 09:40:35 +0400
commit98c574e41a8c2cd9ecb0d25afef8578c3e79289b (patch)
tree3b4c100e8bc38ac9ecddcc86e0572d8af1fec816 /source/blender/bmesh/operators/bmo_subdivide.c
parenta62163ada389a18d11f0c085654916e2ef069a46 (diff)
use 'greater/less then or equal to' operators rather then adding 1.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_subdivide.c')
-rw-r--r--source/blender/bmesh/operators/bmo_subdivide.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/operators/bmo_subdivide.c b/source/blender/bmesh/operators/bmo_subdivide.c
index d0b23c3cdfb..e669585a857 100644
--- a/source/blender/bmesh/operators/bmo_subdivide.c
+++ b/source/blender/bmesh/operators/bmo_subdivide.c
@@ -593,7 +593,7 @@ static void quad_4edge_subdivide(BMesh *bm, BMFace *UNUSED(face), BMVert **verts
}
for (i = 1; i < numcuts + 2; i++) {
- for (j = 1; j < numcuts + 1; j++) {
+ for (j = 1; j <= numcuts; j++) {
a = i * s + j;
b = (i - 1) * s + j;
e = connect_smallest_face(bm, lines[a], lines[b], &f_new);
@@ -710,7 +710,7 @@ static void tri_3edge_subdivide(BMesh *bm, BMFace *UNUSED(face), BMVert **verts,
* s s
* </pre>
*/
- for (i = 1; i < numcuts + 1; i++) {
+ for (i = 1; i <= numcuts; i++) {
for (j = 0; j < i; j++) {
e = connect_smallest_face(bm, lines[i][j], lines[i + 1][j + 1], &f_new);