diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-10-18 03:08:05 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-10-18 03:08:05 +0400 |
commit | c1e1551ef148623c236048deeb30dc826c7ee0c3 (patch) | |
tree | badc172f2d996e05c4da4f9d1955b45fdc49196d /source/blender/editors/mesh/editmesh_add.c | |
parent | fec7585190187ba6c8509620b83addfcaa225be0 (diff) |
Fix [#24288] Mesh Grid pointing towards the floor when first created
Reported by Terry Wallwork
Diffstat (limited to 'source/blender/editors/mesh/editmesh_add.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_add.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_add.c b/source/blender/editors/mesh/editmesh_add.c index a33d64cad29..525867d74c0 100644 --- a/source/blender/editors/mesh/editmesh_add.c +++ b/source/blender/editors/mesh/editmesh_add.c @@ -1053,15 +1053,13 @@ static void make_prim(Object *obedit, int type, float mat[4][4], int tot, int se /* one segment first: the X axis */ phi = (2*dia)/(float)(tot-1); phid = (2*dia)/(float)(seg-1); - for(a=0;a<tot;a++) { + for(a=tot-1;a>=0;a--) { vec[0] = (phi*a) - dia; vec[1]= - dia; vec[2]= 0.0f; eve= addvertlist(em, vec, NULL); eve->f= 1+2+4; - if (a) { - addedgelist(em, eve->prev, eve, NULL); - } + addedgelist(em, eve->prev, eve, NULL); } /* extrude and translate */ vec[0]= vec[2]= 0.0; |