grid-fill: fix error in detecting face flipping.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 16 May 2013 13:58:21 +0000 (13:58 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 16 May 2013 13:58:21 +0000 (13:58 +0000)
source/blender/bmesh/operators/bmo_grid_fill.c

index 98273f2ebd8cc689d1361000979deab1e7ff26af..05116c93a13254a0cd7c46be6eb697117bcd0ac8 100644 (file)
@@ -297,7 +297,7 @@ static void bm_grid_fill(BMesh *bm,
 #ifdef USE_FLIP_DETECT
        {
                ListBase *lb_iter[4] = {lb_a, lb_b, lb_rail_a, lb_rail_b};
-               const int lb_iter_dir[4] = {1, -1, 1, -1};
+               const int lb_iter_dir[4] = {-1, 1, 1, -1};
                int winding_votes = 0;
 
                for (i = 0; i < 4; i++) {